jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1682935 - /jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/ComboStringEditor.java
Date Mon, 01 Jun 2015 15:39:11 GMT
Author: sebb
Date: Mon Jun  1 15:39:11 2015
New Revision: 1682935

URL: http://svn.apache.org/r1682935
Log:
Don't create another empty string array ...

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/ComboStringEditor.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/ComboStringEditor.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/ComboStringEditor.java?rev=1682935&r1=1682934&r2=1682935&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/ComboStringEditor.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/ComboStringEditor.java Mon Jun 
1 15:39:11 2015
@@ -29,6 +29,7 @@ import javax.swing.DefaultComboBoxModel;
 import javax.swing.JComboBox;
 import javax.swing.text.JTextComponent;
 
+import org.apache.commons.lang3.ArrayUtils;
 import org.apache.jmeter.gui.ClearGui;
 import org.apache.jmeter.util.JMeterUtils;
 
@@ -49,8 +50,6 @@ import org.apache.jmeter.util.JMeterUtil
  */
 class ComboStringEditor extends PropertyEditorSupport implements ItemListener, ClearGui {
 
-    private static final String[] EMPTY_STRING_ARRAY = new String[0];
-
     /**
      * The list of options to be offered by this editor.
      */
@@ -108,7 +107,7 @@ class ComboStringEditor extends Property
 
     ComboStringEditor(String []pTags, boolean noEdit, boolean noUndefined, ResourceBundle
rb) {
 
-        tags = pTags == null ? EMPTY_STRING_ARRAY : pTags.clone();
+        tags = pTags == null ? ArrayUtils.EMPTY_STRING_ARRAY : pTags.clone();
 
         model = new DefaultComboBoxModel();
 



Mime
View raw message