jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1429412 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/modifier/gui/RegExUserParametersGui.java
Date Sat, 05 Jan 2013 22:46:06 GMT
Author: sebb
Date: Sat Jan  5 22:46:06 2013
New Revision: 1429412

URL: http://svn.apache.org/viewvc?rev=1429412&view=rev
Log:
Generics: specify List type (and drop unnecessary casts)

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/modifier/gui/RegExUserParametersGui.java

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/modifier/gui/RegExUserParametersGui.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/modifier/gui/RegExUserParametersGui.java?rev=1429412&r1=1429411&r2=1429412&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/modifier/gui/RegExUserParametersGui.java
(original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/modifier/gui/RegExUserParametersGui.java
Sat Jan  5 22:46:06 2013
@@ -19,12 +19,12 @@
 package org.apache.jmeter.protocol.http.modifier.gui;
 
 import java.awt.BorderLayout;
-import java.awt.Component;
 import java.awt.GridBagConstraints;
 import java.awt.GridBagLayout;
 import java.util.List;
 
 import javax.swing.Box;
+import javax.swing.JComponent;
 import javax.swing.JPanel;
 
 import org.apache.jmeter.processor.gui.AbstractPreProcessorGui;
@@ -136,12 +136,12 @@ public class RegExUserParametersGui exte
 	}
 
 	private void addField(JPanel panel, JLabeledTextField field, GridBagConstraints gbc) {
-		List item = field.getComponentList();
-		panel.add((Component) item.get(0), gbc.clone());
+		List<JComponent> item = field.getComponentList();
+		panel.add(item.get(0), gbc.clone());
 		gbc.gridx++;
 		gbc.weightx = 1;
 		gbc.fill=GridBagConstraints.HORIZONTAL;
-		panel.add((Component) item.get(1), gbc.clone());
+		panel.add(item.get(1), gbc.clone());
 	}
 
 	// Next line



Mime
View raw message