jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1718753 - in /jmeter/trunk/src/core/org/apache/jmeter/report/processor: StatisticsSummaryConsumer.java TimeRateAggregator.java graph/impl/ActiveThreadsGraphConsumer.java
Date Wed, 09 Dec 2015 01:41:58 GMT
Author: sebb
Date: Wed Dec  9 01:41:58 2015
New Revision: 1718753

URL: http://svn.apache.org/viewvc?rev=1718753&view=rev
Log:
Unnecessary casts

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/report/processor/StatisticsSummaryConsumer.java
    jmeter/trunk/src/core/org/apache/jmeter/report/processor/TimeRateAggregator.java
    jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ActiveThreadsGraphConsumer.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/report/processor/StatisticsSummaryConsumer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/processor/StatisticsSummaryConsumer.java?rev=1718753&r1=1718752&r2=1718753&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/processor/StatisticsSummaryConsumer.java
(original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/processor/StatisticsSummaryConsumer.java
Wed Dec  9 01:41:58 2015
@@ -55,9 +55,9 @@ public class StatisticsSummaryConsumer e
 	}
 
 	long elapsedTime = sample.getElapsedTime();
-	data.getPercentile1().addValue((double) elapsedTime);
-	data.getPercentile2().addValue((double) elapsedTime);
-	data.getPercentile3().addValue((double) elapsedTime);
+	data.getPercentile1().addValue(elapsedTime);
+	data.getPercentile2().addValue(elapsedTime);
+	data.getPercentile3().addValue(elapsedTime);
 
 	data.setMin(elapsedTime);
 	data.setMax(elapsedTime);

Modified: jmeter/trunk/src/core/org/apache/jmeter/report/processor/TimeRateAggregator.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/processor/TimeRateAggregator.java?rev=1718753&r1=1718752&r2=1718753&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/processor/TimeRateAggregator.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/processor/TimeRateAggregator.java Wed Dec
 9 01:41:58 2015
@@ -60,7 +60,7 @@ public class TimeRateAggregator implemen
      */
     @Override
     public double getResult() {
-	return (double) value * 1000 / granularity;
+	return value * 1000 / granularity;
     }
 
     /*

Modified: jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ActiveThreadsGraphConsumer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ActiveThreadsGraphConsumer.java?rev=1718753&r1=1718752&r2=1718753&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ActiveThreadsGraphConsumer.java
(original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ActiveThreadsGraphConsumer.java
Wed Dec  9 01:41:58 2015
@@ -77,7 +77,7 @@ public class ActiveThreadsGraphConsumer
 
 		    @Override
 		    public double select(String series, Sample sample) {
-		        return (double) sample.getGroupThreads();
+		        return sample.getGroupThreads();
 		    }
 	        }, false, false));
 	return groupInfos;



Mime
View raw message