commit | a988069f02602a32b42e4b14b409136b1496c1a2 | [log] [tgz] |
---|---|---|
author | Gary Gregory <garydgregory@gmail.com> | Sat Jan 16 22:31:27 2021 -0500 |
committer | Gary Gregory <garydgregory@gmail.com> | Sat Jan 16 22:31:27 2021 -0500 |
tree | 5f7cc04484dc6bcc8526b1e46a6949e068c689f8 | |
parent | e050779de00a62fc16cf642f3f60cf4a1bc825e1 [diff] |
Use isEmpty().
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 @@ { boolean result = false; - if ( methods.size() > 0 ) + if ( !methods.isEmpty() ) { Method method = methods.get( 0 ); Class<?>[] parameterTypes = OgnlRuntime.getParameterTypes( method );