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-ognl.git


The following commit(s) were added to refs/heads/master by this push:
     new 925a746  Use isEmpty().
     new e050779  Merge branch 'master' of 
https://gitbox.apache.org/repos/asf/commons-ognl.git
925a746 is described below

commit 925a746106c08a6e66c4b370bdb573f02772284a
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Jan 16 21:39:10 2021 -0500

    Use isEmpty().
---
 src/main/java/org/apache/commons/ognl/ObjectMethodAccessor.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/ognl/ObjectMethodAccessor.java 
b/src/main/java/org/apache/commons/ognl/ObjectMethodAccessor.java
index ad61132..670bf2e 100644
--- a/src/main/java/org/apache/commons/ognl/ObjectMethodAccessor.java
+++ b/src/main/java/org/apache/commons/ognl/ObjectMethodAccessor.java
@@ -53,7 +53,7 @@ public class ObjectMethodAccessor
         Class<?> targetClass = ( target == null ) ? null : target.getClass();
         List<Method> methods = OgnlRuntime.getMethods( targetClass, 
methodName, false );
 
-        if ( ( methods == null ) || ( methods.size() == 0 ) )
+        if ( ( methods == null ) || ( methods.isEmpty() ) )
         {
             methods = OgnlRuntime.getMethods( targetClass, methodName, true );
 

Reply via email to