Author: fschumacher
Date: Sun Nov 23 10:34:09 2014
New Revision: 1641172

URL: http://svn.apache.org/r1641172
Log:
Add generics information to JComboBox. We know there are
 only strings in this JComboBox.

Modified:
    
jmeter/trunk/src/components/org/apache/jmeter/assertions/gui/HTMLAssertionGui.java

Modified: 
jmeter/trunk/src/components/org/apache/jmeter/assertions/gui/HTMLAssertionGui.java
URL: 
http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/assertions/gui/HTMLAssertionGui.java?rev=1641172&r1=1641171&r2=1641172&view=diff
==============================================================================
--- 
jmeter/trunk/src/components/org/apache/jmeter/assertions/gui/HTMLAssertionGui.java
 (original)
+++ 
jmeter/trunk/src/components/org/apache/jmeter/assertions/gui/HTMLAssertionGui.java
 Sun Nov 23 10:34:09 2014
@@ -65,7 +65,7 @@ public class HTMLAssertionGui extends Ab
 
     private JCheckBox errorsOnly = null;
 
-    private JComboBox docTypeBox = null;
+    private JComboBox<String> docTypeBox = null;
 
     private JRadioButton htmlRadioButton = null;
 
@@ -213,7 +213,7 @@ public class HTMLAssertionGui extends Ab
 
         // doctype
         HorizontalPanel docTypePanel = new HorizontalPanel();
-        docTypeBox = new JComboBox(new Object[] { "omit", "auto", "strict", 
"loose" });
+        docTypeBox = new JComboBox<String>(new String[] { "omit", "auto", 
"strict", "loose" });
         // docTypePanel.add(new
         // JLabel(JMeterUtils.getResString("duration_assertion_label"))); 
//$NON-NLS-1$
         docTypePanel.add(new JLabel("Doctype:"));


Reply via email to