mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 06:15:41 +00:00
[trivial] code style
This commit is contained in:
1 file changed
+7
-7
@@ -48,12 +48,12 @@ public class BubblingConfigurationResolver implements ConfigurationResolver {
|
||||
public <T> T resolve(ConfigurationKey<T> key) {
|
||||
boolean isList = key.getType().isList();
|
||||
List<List<ListModification>> listModificationsList = null;
|
||||
|
||||
|
||||
boolean stopBubbling = false;
|
||||
ConfigurationFile currentLevel = start;
|
||||
Collection<ConfigurationFile> visited = new HashSet<ConfigurationFile>();
|
||||
outer:
|
||||
while (!stopBubbling && currentLevel != null) {
|
||||
while (currentLevel != null) {
|
||||
Deque<ConfigurationFile> round = new ArrayDeque<ConfigurationFile>();
|
||||
round.push(currentLevel);
|
||||
|
||||
@@ -70,19 +70,19 @@ public class BubblingConfigurationResolver implements ConfigurationResolver {
|
||||
stopBubbling = stopBubbling || (stop != null && Boolean.TRUE.equals(stop.getValue()));
|
||||
|
||||
Result result = source.resolve(key);
|
||||
if (result == null) {
|
||||
continue;
|
||||
}
|
||||
if (result == null) continue;
|
||||
|
||||
if (isList) {
|
||||
if (listModificationsList == null) listModificationsList = new ArrayList<List<ListModification>>();
|
||||
listModificationsList.add((List<ListModification>)result.getValue());
|
||||
listModificationsList.add((List<ListModification>) result.getValue());
|
||||
}
|
||||
if (result.isAuthoritative()) {
|
||||
if (isList) break outer;
|
||||
return (T) result.getValue();
|
||||
}
|
||||
}
|
||||
currentLevel = stopBubbling ? null : currentLevel.parent();
|
||||
if (stopBubbling) break;
|
||||
currentLevel = currentLevel.parent();
|
||||
}
|
||||
|
||||
if (!isList) return null;
|
||||
|
||||
Reference in new issue
Block a user