Author: sebb
Date: Tue Sep  1 14:34:44 2009
New Revision: 810074

URL: http://svn.apache.org/viewvc?rev=810074&view=rev
Log:
Fix error caused by genericising NumberComparator

Modified:
    
jakarta/jmeter/trunk/src/components/org/apache/jmeter/visualizers/DistributionGraph.java

Modified: 
jakarta/jmeter/trunk/src/components/org/apache/jmeter/visualizers/DistributionGraph.java
URL: 
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/components/org/apache/jmeter/visualizers/DistributionGraph.java?rev=810074&r1=810073&r2=810074&view=diff
==============================================================================
--- 
jakarta/jmeter/trunk/src/components/org/apache/jmeter/visualizers/DistributionGraph.java
 (original)
+++ 
jakarta/jmeter/trunk/src/components/org/apache/jmeter/visualizers/DistributionGraph.java
 Tue Sep  1 14:34:44 2009
@@ -167,15 +167,15 @@
             Number fifty = p_model.getPercentPoint(0.50);
 
             int total = p_model.getCount();
-            Collection<?> values = p_model.getDistribution().values();
-            Object[] objval = new Object[values.size()];
+            Collection<Number[]> values = p_model.getDistribution().values();
+            Number[][] objval = (Number[][]) new Object[values.size()];
             objval = values.toArray(objval);
             // we sort the objects
             Arrays.sort(objval, new NumberComparator());
             int len = objval.length;
             for (int count = 0; count < len; count++) {
                 // calculate the height
-                Number[] num = (Number[]) objval[count];
+                Number[] num = objval[count];
                 double iper = (double) num[1].intValue() / (double) total;
                 double iheight = height * iper;
                 // if the height is less than one, we set it



---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-h...@jakarta.apache.org

Reply via email to