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 a988069  Use isEmpty().
a988069 is described below

commit a988069f02602a32b42e4b14b409136b1496c1a2
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Jan 16 22:31:27 2021 -0500

    Use isEmpty().
---
 .../ognl/internal/entry/PropertyDescriptorCacheEntryFactory.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/src/main/java/org/apache/commons/ognl/internal/entry/PropertyDescriptorCacheEntryFactory.java
 
b/src/main/java/org/apache/commons/ognl/internal/entry/PropertyDescriptorCacheEntryFactory.java
index 8ce59a0..3c8616c 100644
--- 
a/src/main/java/org/apache/commons/ognl/internal/entry/PropertyDescriptorCacheEntryFactory.java
+++ 
b/src/main/java/org/apache/commons/ognl/internal/entry/PropertyDescriptorCacheEntryFactory.java
@@ -185,7 +185,7 @@ public class PropertyDescriptorCacheEntryFactory
     {
         boolean result = false;
 
-        if ( methods.size() > 0 )
+        if ( !methods.isEmpty() )
         {
             Method method = methods.get( 0 );
             Class<?>[] parameterTypes = OgnlRuntime.getParameterTypes( method 
);

Reply via email to