diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2023-03-21 17:37:24 +0100 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2023-03-21 17:37:24 +0100 |
commit | 984cd1d5cf0af7263efaf167dc308ab59406cd68 (patch) | |
tree | 6be454339098aa537e79cef1c44dda93fccf160c | |
parent | 5a2b68c574922b76db098fd2d0e9902d5f39a884 (diff) | |
download | lombok-984cd1d5cf0af7263efaf167dc308ab59406cd68.tar.gz lombok-984cd1d5cf0af7263efaf167dc308ab59406cd68.tar.bz2 lombok-984cd1d5cf0af7263efaf167dc308ab59406cd68.zip |
[trivial] code style
-rw-r--r-- | src/core/lombok/core/configuration/BubblingConfigurationResolver.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/lombok/core/configuration/BubblingConfigurationResolver.java b/src/core/lombok/core/configuration/BubblingConfigurationResolver.java index c55bc75e..ecd5e397 100644 --- a/src/core/lombok/core/configuration/BubblingConfigurationResolver.java +++ b/src/core/lombok/core/configuration/BubblingConfigurationResolver.java @@ -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; |