jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1728435 - /jmeter/trunk/src/core/org/apache/jmeter/report/processor/FieldSampleComparator.java
Date Thu, 04 Feb 2016 10:39:00 GMT
Author: sebb
Date: Thu Feb  4 10:38:59 2016
New Revision: 1728435

URL: http://svn.apache.org/viewvc?rev=1728435&view=rev
Log:
Compare as Longs rather than using autounboxing

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=1728435&r1=1728434&r2=1728435&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 Thu
Feb  4 10:38:59 2016
@@ -48,6 +48,6 @@ public class FieldSampleComparator imple
      */
     @Override
     public long compare(Sample s1, Sample s2) {
-        return Long.compare(s1.getData(long.class, index), s2.getData(long.class, index));
+        return s1.getData(long.class, index).compareTo(s2.getData(long.class, index));
     }
 }



Mime
View raw message