This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-configuration.git
commit 086cd84e08fc98e82acf4281674e26b470c86b4e Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sat Jul 16 12:15:32 2022 -0400 Use forEach() --- .../org/apache/commons/configuration2/resolver/CatalogResolver.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/org/apache/commons/configuration2/resolver/CatalogResolver.java b/src/main/java/org/apache/commons/configuration2/resolver/CatalogResolver.java index 4ae1fe18..d5a424c0 100644 --- a/src/main/java/org/apache/commons/configuration2/resolver/CatalogResolver.java +++ b/src/main/java/org/apache/commons/configuration2/resolver/CatalogResolver.java @@ -129,11 +129,7 @@ public class CatalogResolver implements EntityResolver { * @param debug True if debugging should be enabled, false otherwise. */ public void setDebug(final boolean debug) { - if (debug) { - manager.setVerbosity(DEBUG_ALL); - } else { - manager.setVerbosity(DEBUG_NONE); - } + manager.setVerbosity(debug ? DEBUG_ALL : DEBUG_NONE); } /**