jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1776755 - in /jmeter/trunk/src/jorphan/org/apache/jorphan: collections/Data.java gui/JLabeledChoice.java
Date Sat, 31 Dec 2016 14:31:42 GMT
Author: pmouawad
Date: Sat Dec 31 14:31:42 2016
New Revision: 1776755

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

Modified:
    jmeter/trunk/src/jorphan/org/apache/jorphan/collections/Data.java
    jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledChoice.java

Modified: jmeter/trunk/src/jorphan/org/apache/jorphan/collections/Data.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/jorphan/org/apache/jorphan/collections/Data.java?rev=1776755&r1=1776754&r2=1776755&view=diff
==============================================================================
--- jmeter/trunk/src/jorphan/org/apache/jorphan/collections/Data.java (original)
+++ jmeter/trunk/src/jorphan/org/apache/jorphan/collections/Data.java Sat Dec 31 14:31:42
2016
@@ -51,7 +51,8 @@ public class Data implements Serializabl
     private List<String> header;
 
     // saves current position in data List
-    private int currentPos, size;
+    private int currentPos; 
+    private int size;
 
     /**
      * Constructor - takes no arguments.
@@ -212,7 +213,8 @@ public class Data implements Serializabl
      *            ending index (for quicksort algorithm).
      */
     private void sortData(String column, int start, int end) {
-        int x = start, y = end - 1;
+        int x = start;
+        int y = end - 1;
         String basis = data.get(column).get((x + y) / 2).toString();
         if (x == y) {
             return;

Modified: jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledChoice.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledChoice.java?rev=1776755&r1=1776754&r2=1776755&view=diff
==============================================================================
--- jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledChoice.java (original)
+++ jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledChoice.java Sat Dec 31 14:31:42
2016
@@ -46,7 +46,8 @@ public class JLabeledChoice extends JPan
 
     private final ArrayList<ChangeListener> mChangeListeners = new ArrayList<>(3);
 
-    private JButton delete, add;
+    private JButton delete;
+    private JButton add;
 
     /**
      * Default constructor, The label and the Text field are left empty.



Mime
View raw message