jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1698303 - in /jmeter/trunk/src: components/org/apache/jmeter/visualizers/StatGraphVisualizer.java jorphan/org/apache/jorphan/gui/JLabeledChoice.java
Date Fri, 28 Aug 2015 10:53:42 GMT
Author: sebb
Date: Fri Aug 28 10:53:42 2015
New Revision: 1698303

URL: http://svn.apache.org/r1698303
Log:
Unnecessary casts

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/StatGraphVisualizer.java
    jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledChoice.java

Modified: jmeter/trunk/src/components/org/apache/jmeter/visualizers/StatGraphVisualizer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/visualizers/StatGraphVisualizer.java?rev=1698303&r1=1698302&r2=1698303&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/visualizers/StatGraphVisualizer.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/visualizers/StatGraphVisualizer.java Fri
Aug 28 10:53:42 2015
@@ -526,7 +526,7 @@ public class StatGraphVisualizer extends
             int cpt = 0;
             for (BarGraph bar : eltList) {
                 if (bar.getChkBox().isSelected()) {
-                    int col = model.findColumn((String) columnsList.getItemAt(cpt));
+                    int col = model.findColumn(columnsList.getItemAt(cpt));
                     for (int idx=0; idx < count; idx++) {
                         data[s][idx] = ((Number)model.getValueAt(idx,col)).doubleValue();
                     }

Modified: jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledChoice.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledChoice.java?rev=1698303&r1=1698302&r2=1698303&view=diff
==============================================================================
--- jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledChoice.java (original)
+++ jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledChoice.java Fri Aug 28 10:53:42
2015
@@ -210,7 +210,7 @@ public class JLabeledChoice extends JPan
     public String[] getItems() {
         String[] items = new String[choiceList.getItemCount()];
         for (int i = 0; i < items.length; i++) {
-            items[i] = (String) choiceList.getItemAt(i);
+            items[i] = choiceList.getItemAt(i);
         }
         return items;
     }



Mime
View raw message