jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1719685 - /jmeter/trunk/src/core/org/apache/jmeter/report/processor/FieldSampleComparator.java
Date Sat, 12 Dec 2015 13:24:11 GMT
Author: fschumacher
Date: Sat Dec 12 13:24:11 2015
New Revision: 1719685

URL: http://svn.apache.org/viewvc?rev=1719685&view=rev
Log:
Use Long.compare

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/report/processor/FieldSampleComparator.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/report/processor/FieldSampleComparator.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/processor/FieldSampleComparator.java?rev=1719685&r1=1719684&r2=1719685&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/processor/FieldSampleComparator.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/processor/FieldSampleComparator.java Sat
Dec 12 13:24:11 2015
@@ -54,6 +54,6 @@ public class FieldSampleComparator imple
      */
     @Override
     public long compare(Sample s1, Sample s2) {
-        return s1.getLong(index) - s2.getLong(index);
+        return Long.compare(s1.getLong(index), s2.getLong(index));
     }
 }



Mime
View raw message