jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1381340 - in /jmeter/trunk/src/components/org/apache/jmeter/visualizers: AxisGraph.java RespTimeGraphChart.java Spline3.java
Date Wed, 05 Sep 2012 20:26:20 GMT
Author: pmouawad
Date: Wed Sep  5 20:26:19 2012
New Revision: 1381340

URL: http://svn.apache.org/viewvc?rev=1381340&view=rev
Log:
Use System.arrayCopy

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/AxisGraph.java
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/RespTimeGraphChart.java
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/Spline3.java

Modified: jmeter/trunk/src/components/org/apache/jmeter/visualizers/AxisGraph.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/visualizers/AxisGraph.java?rev=1381340&r1=1381339&r2=1381340&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/visualizers/AxisGraph.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/visualizers/AxisGraph.java Wed Sep  5 20:26:19
2012
@@ -371,9 +371,7 @@ public class AxisGraph extends JPanel {
             clusteredBarChartProperties.addPostRenderEventListener(valueLabelRenderer);
 
             Paint[] paints = new Paint[_color.length];
-            for (int i = 0; i < _color.length; i++) {
-                paints[i] =  _color[i];
-            }
+            System.arraycopy(_color, 0, paints, 0, paints.length);
             
             AxisChartDataSet axisChartDataSet =
                 new AxisChartDataSet(

Modified: jmeter/trunk/src/components/org/apache/jmeter/visualizers/RespTimeGraphChart.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/visualizers/RespTimeGraphChart.java?rev=1381340&r1=1381339&r2=1381340&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/visualizers/RespTimeGraphChart.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/visualizers/RespTimeGraphChart.java Wed
Sep  5 20:26:19 2012
@@ -287,9 +287,7 @@ public class RespTimeGraphChart extends 
 
             // Lines colors
             Paint[] paints = new Paint[_color.length];
-            for (int i = 0; i < _color.length; i++) {
-                paints[i] =  _color[i] ;
-            }
+            System.arraycopy(_color, 0, paints, 0, _color.length);
             
             // Define chart type (line)
             AxisChartDataSet axisChartDataSet =

Modified: jmeter/trunk/src/components/org/apache/jmeter/visualizers/Spline3.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/visualizers/Spline3.java?rev=1381340&r1=1381339&r2=1381340&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/visualizers/Spline3.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/visualizers/Spline3.java Wed Sep  5 20:26:19
2012
@@ -118,9 +118,7 @@ public class Spline3 {
         this._m = n;
         // grab the nodes
         this._r = new float[n];
-        for (int i = 0; i < n; i++) {
-            _r[i] = r[i];
-        }
+        System.arraycopy(r, 0, _r, 0, _r.length);
         // the number of non extreme nodes is the number of intervals
         // minus 1, i.e. the length of r minus 2
         this._n = n - 2;



Mime
View raw message