From 984cd1d5cf0af7263efaf167dc308ab59406cd68 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Tue, 21 Mar 2023 17:37:24 +0100 Subject: [trivial] code style --- .../core/configuration/BubblingConfigurationResolver.java | 14 +++++++------- 1 file 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 resolve(ConfigurationKey key) { boolean isList = key.getType().isList(); List> listModificationsList = null; - + boolean stopBubbling = false; ConfigurationFile currentLevel = start; Collection visited = new HashSet(); outer: - while (!stopBubbling && currentLevel != null) { + while (currentLevel != null) { Deque round = new ArrayDeque(); 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>(); - listModificationsList.add((List)result.getValue()); + listModificationsList.add((List) 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; -- cgit