You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2021/01/17 01:58:58 UTC
[commons-digester] branch master updated: Use isEmpty().
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-digester.git
The following commit(s) were added to refs/heads/master by this push:
new 8b7af93 Use isEmpty().
8b7af93 is described below
commit 8b7af93f8c3c9f110c293dcf7ae15476fe99c578
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Jan 16 20:58:54 2021 -0500
Use isEmpty().
---
core/src/main/java/org/apache/commons/digester3/Digester.java | 2 +-
.../main/java/org/apache/commons/digester3/SetNestedPropertiesRule.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/core/src/main/java/org/apache/commons/digester3/Digester.java b/core/src/main/java/org/apache/commons/digester3/Digester.java
index 3994c24..de5de5a 100644
--- a/core/src/main/java/org/apache/commons/digester3/Digester.java
+++ b/core/src/main/java/org/apache/commons/digester3/Digester.java
@@ -2692,7 +2692,7 @@ public class Digester
object = stackAction.onPush( this, null, object );
}
- if ( stack.size() == 0 )
+ if ( stack.isEmpty() )
{
root = object;
}
diff --git a/core/src/main/java/org/apache/commons/digester3/SetNestedPropertiesRule.java b/core/src/main/java/org/apache/commons/digester3/SetNestedPropertiesRule.java
index dde68d9..b681f86 100644
--- a/core/src/main/java/org/apache/commons/digester3/SetNestedPropertiesRule.java
+++ b/core/src/main/java/org/apache/commons/digester3/SetNestedPropertiesRule.java
@@ -389,7 +389,7 @@ public class SetNestedPropertiesRule
// the rule passed to this object's constructor is included
// in the returned list of matching rules.
- if ( ( match == null || match.size() == 0 ) )
+ if ( ( match == null || match.isEmpty() ) )
{
// The "real" rules class doesn't have any matches for
// the specified path, so we return a list containing