jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1776759 - /jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/GenericTestBeanCustomizer.java
Date Sat, 31 Dec 2016 14:34:32 GMT
Author: pmouawad
Date: Sat Dec 31 14:34:32 2016
New Revision: 1776759

URL: http://svn.apache.org/viewvc?rev=1776759&view=rev
Log:
sonar : fix squid:S1659  : Declare XXX on a separate line.

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/GenericTestBeanCustomizer.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/GenericTestBeanCustomizer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/GenericTestBeanCustomizer.java?rev=1776759&r1=1776758&r2=1776759&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/GenericTestBeanCustomizer.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/GenericTestBeanCustomizer.java Sat
Dec 31 14:34:32 2016
@@ -698,12 +698,11 @@ public class GenericTestBeanCustomizer e
 
         @Override
         public int compare(PropertyDescriptor d1, PropertyDescriptor d2) {
-            int result;
-
-            String g1 = group(d1), g2 = group(d2);
+            String g1 = group(d1);
+            String g2 = group(d2);
             Integer go1 = groupOrder(g1), go2 = groupOrder(g2);
 
-            result = go1.compareTo(go2);
+            int result = go1.compareTo(go2);
             if (result != 0) {
                 return result;
             }
@@ -713,7 +712,8 @@ public class GenericTestBeanCustomizer e
                 return result;
             }
 
-            Integer po1 = propertyOrder(d1), po2 = propertyOrder(d2);
+            Integer po1 = propertyOrder(d1);
+            Integer po2 = propertyOrder(d2);
             result = po1.compareTo(po2);
             if (result != 0) {
                 return result;



Mime
View raw message