jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1842282 - /jmeter/trunk/src/junit/org/apache/jmeter/protocol/java/control/gui/ClassFilter.java
Date Fri, 28 Sep 2018 20:59:46 GMT
Author: pmouawad
Date: Fri Sep 28 20:59:46 2018
New Revision: 1842282

URL: http://svn.apache.org/viewvc?rev=1842282&view=rev
Log:
Fix SONAR

Modified:
    jmeter/trunk/src/junit/org/apache/jmeter/protocol/java/control/gui/ClassFilter.java

Modified: jmeter/trunk/src/junit/org/apache/jmeter/protocol/java/control/gui/ClassFilter.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/junit/org/apache/jmeter/protocol/java/control/gui/ClassFilter.java?rev=1842282&r1=1842281&r2=1842282&view=diff
==============================================================================
--- jmeter/trunk/src/junit/org/apache/jmeter/protocol/java/control/gui/ClassFilter.java (original)
+++ jmeter/trunk/src/junit/org/apache/jmeter/protocol/java/control/gui/ClassFilter.java Fri
Sep 28 20:59:46 2018
@@ -51,7 +51,7 @@ class ClassFilter {
                 newlist.add(item);
             }
         }
-        if (newlist.size() > 0) {
+        if (!newlist.isEmpty()) {
             return newlist.toArray(ArrayUtils.EMPTY_STRING_ARRAY);
         } else {
             return ArrayUtils.EMPTY_STRING_ARRAY;



Mime
View raw message