diff options
author | m.miernik <m.miernik@samsung.com> | 2021-06-22 11:37:46 +0200 |
---|---|---|
committer | KAPIL SINGAL <ks220y@att.com> | 2021-06-23 15:48:40 +0000 |
commit | cb7e5aa3c0445882a2bc04222573c1563b98117b (patch) | |
tree | 54a754eb9a85890bddf3d05ae6787a6a6bd8e885 /sdnr/wt/odlux/core | |
parent | a285920200ba5cdff0d2df4f794518a0db395922 (diff) |
Fix sonar issues
Replaced methods size() to isEmpty() based on Sonar recommendations
Issue-ID: SDNC-1568
Change-Id: I9b2548ba1d42e009a62ddd34f4f43452622c6ff0
Signed-off-by: m.miernik <m.miernik@samsung.com>
Diffstat (limited to 'sdnr/wt/odlux/core')
-rw-r--r-- | sdnr/wt/odlux/core/model/src/main/java/com/opensymphony/xwork2/util/ClassLoaderUtil.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sdnr/wt/odlux/core/model/src/main/java/com/opensymphony/xwork2/util/ClassLoaderUtil.java b/sdnr/wt/odlux/core/model/src/main/java/com/opensymphony/xwork2/util/ClassLoaderUtil.java index 636c9db29..bbe36c840 100644 --- a/sdnr/wt/odlux/core/model/src/main/java/com/opensymphony/xwork2/util/ClassLoaderUtil.java +++ b/sdnr/wt/odlux/core/model/src/main/java/com/opensymphony/xwork2/util/ClassLoaderUtil.java @@ -203,7 +203,7 @@ public class ClassLoaderUtil { private Enumeration<E> determineCurrentEnumeration() { if (cur != null && !cur.hasMoreElements()) { - if (enums.size() > 0) { + if (!enums.isEmpty()) { cur = enums.removeLast(); } else { cur = null; |