Flatten else/if 38/102438/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 22 Sep 2022 10:41:09 +0000 (12:41 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 22 Sep 2022 10:41:09 +0000 (12:41 +0200)
Use a simple else if instead of nesting.

Change-Id: I05d3b54bebee2a2f78e5bf33e10834b3f1a5e8ba
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
aaa-filterchain/src/main/java/org/opendaylight/aaa/filterchain/configuration/impl/CustomFilterAdapterConfigurationImpl.java

index 557f3b16ce151e87868544388dd20cd4819486d8..3642f5fce6a39c48333ff999b57ba519a4e36621 100644 (file)
@@ -287,10 +287,8 @@ public final class CustomFilterAdapterConfigurationImpl implements CustomFilterA
                     final String filterInitParamKey = key.substring(lastDotSeparator + 1);
                     extractedConfig.put(filterInitParamKey, entry.getValue());
                 }
-            } else {
-                if (!key.equals(CUSTOM_FILTER_LIST_KEY)) {
-                    LOG.error("couldn't parse property \"{}\"; skipping", key);
-                }
+            } else if (!key.equals(CUSTOM_FILTER_LIST_KEY)) {
+                LOG.error("couldn't parse property \"{}\"; skipping", key);
             }
         }
         return extractedConfig;