[trivial] code style

This commit is contained in:
Reinier Zwitserloot committed 2023-03-21 17:37:24 +01:00
1 parent 5a2b68c574
commit 984cd1d5cf
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;