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
The following commit(s) were added to refs/heads/master by this push: new d2ff68c Use String#isEmpty(). d2ff68c is described below commit d2ff68c9d019b844ca08f91d75277cc0db288a37 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Thu Dec 31 11:26:36 2020 -0500 Use String#isEmpty(). --- .../commons/configuration2/PatternSubtreeConfigurationWrapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/configuration2/PatternSubtreeConfigurationWrapper.java b/src/main/java/org/apache/commons/configuration2/PatternSubtreeConfigurationWrapper.java index 84c838a..9b6de2c 100644 --- a/src/main/java/org/apache/commons/configuration2/PatternSubtreeConfigurationWrapper.java +++ b/src/main/java/org/apache/commons/configuration2/PatternSubtreeConfigurationWrapper.java @@ -442,7 +442,7 @@ public class PatternSubtreeConfigurationWrapper extends BaseHierarchicalConfigur private String makePath(final String item) { String pathPattern; - if ((item.length() == 0 || item.startsWith("/")) && trailing) + if ((item.isEmpty() || item.startsWith("/")) && trailing) { pathPattern = path.substring(0, path.length() - 1); }