jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1697168 - in /jmeter/trunk/src: components/org/apache/jmeter/sampler/ components/org/apache/jmeter/visualizers/ core/org/apache/jmeter/assertions/gui/ core/org/apache/jmeter/config/gui/ core/org/apache/jmeter/control/ core/org/apache/jmete...
Date Sun, 23 Aug 2015 11:41:35 GMT
Author: fschumacher
Date: Sun Aug 23 11:41:34 2015
New Revision: 1697168

URL: http://svn.apache.org/r1697168
Log:
Use varargs for Arrays#asList instead of creating an String array explicitly.

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/sampler/DebugSampler.java
    jmeter/trunk/src/components/org/apache/jmeter/sampler/TestAction.java
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/PropertyControlGui.java
    jmeter/trunk/src/core/org/apache/jmeter/assertions/gui/AbstractAssertionGui.java
    jmeter/trunk/src/core/org/apache/jmeter/config/gui/AbstractConfigGui.java
    jmeter/trunk/src/core/org/apache/jmeter/control/TransactionSampler.java
    jmeter/trunk/src/core/org/apache/jmeter/control/gui/AbstractControllerGui.java
    jmeter/trunk/src/core/org/apache/jmeter/control/gui/TestFragmentControllerGui.java
    jmeter/trunk/src/core/org/apache/jmeter/processor/gui/AbstractPostProcessorGui.java
    jmeter/trunk/src/core/org/apache/jmeter/processor/gui/AbstractPreProcessorGui.java
    jmeter/trunk/src/core/org/apache/jmeter/samplers/gui/AbstractSamplerGui.java
    jmeter/trunk/src/core/org/apache/jmeter/threads/gui/AbstractThreadGroupGui.java
    jmeter/trunk/src/core/org/apache/jmeter/timers/gui/AbstractTimerGui.java
    jmeter/trunk/src/core/org/apache/jmeter/visualizers/gui/AbstractListenerGui.java
    jmeter/trunk/src/protocol/ftp/org/apache/jmeter/protocol/ftp/sampler/FTPSampler.java
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/HttpMirrorControlGui.java
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/gui/ProxyControlGui.java
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HttpWebdav.java
    jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/sampler/BSFSampler.java
    jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/sampler/BeanShellSampler.java
    jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/sampler/JSR223Sampler.java
    jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/sampler/JavaSampler.java
    jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/sampler/JDBCSampler.java
    jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java
    jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LDAPSampler.java
    jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/mail/sampler/MailReaderSampler.java
    jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/SmtpSampler.java
    jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/SystemSampler.java
    jmeter/trunk/src/protocol/tcp/org/apache/jmeter/protocol/tcp/sampler/TCPSampler.java

Modified: jmeter/trunk/src/components/org/apache/jmeter/sampler/DebugSampler.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/sampler/DebugSampler.java?rev=1697168&r1=1697167&r2=1697168&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/sampler/DebugSampler.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/sampler/DebugSampler.java Sun Aug 23 11:41:34
2015
@@ -44,8 +44,7 @@ public class DebugSampler extends Abstra
     private static final long serialVersionUID = 232L;
 
     private static final Set<String> APPLIABLE_CONFIG_CLASSES = new HashSet<>(
-            Arrays.asList(new String[]{
-                    "org.apache.jmeter.config.gui.SimpleConfigGui"}));
+            Arrays.asList("org.apache.jmeter.config.gui.SimpleConfigGui"));
 
     private boolean displayJMeterVariables;
 

Modified: jmeter/trunk/src/components/org/apache/jmeter/sampler/TestAction.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/sampler/TestAction.java?rev=1697168&r1=1697167&r2=1697168&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/sampler/TestAction.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/sampler/TestAction.java Sun Aug 23 11:41:34
2015
@@ -47,8 +47,7 @@ public class TestAction extends Abstract
     private static final long serialVersionUID = 240L;
 
     private static final Set<String> APPLIABLE_CONFIG_CLASSES = new HashSet<>(
-            Arrays.asList(new String[]{
-                    "org.apache.jmeter.config.gui.SimpleConfigGui"}));
+            Arrays.asList("org.apache.jmeter.config.gui.SimpleConfigGui"));
 
     // Actions
     public static final int STOP = 0;

Modified: jmeter/trunk/src/components/org/apache/jmeter/visualizers/PropertyControlGui.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/visualizers/PropertyControlGui.java?rev=1697168&r1=1697167&r2=1697168&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/visualizers/PropertyControlGui.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/visualizers/PropertyControlGui.java Sun
Aug 23 11:41:34 2015
@@ -101,7 +101,7 @@ public class PropertyControlGui extends
 
     @Override
     public Collection<String> getMenuCategories() {
-        return Arrays.asList(new String[] { MenuFactory.NON_TEST_ELEMENTS });
+        return Arrays.asList(MenuFactory.NON_TEST_ELEMENTS);
     }
 
     @Override

Modified: jmeter/trunk/src/core/org/apache/jmeter/assertions/gui/AbstractAssertionGui.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/assertions/gui/AbstractAssertionGui.java?rev=1697168&r1=1697167&r2=1697168&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/assertions/gui/AbstractAssertionGui.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/assertions/gui/AbstractAssertionGui.java Sun Aug
23 11:41:34 2015
@@ -49,6 +49,6 @@ public abstract class AbstractAssertionG
      */
     @Override
     public Collection<String> getMenuCategories() {
-        return Arrays.asList(new String[] { MenuFactory.ASSERTIONS });
+        return Arrays.asList(MenuFactory.ASSERTIONS);
     }
 }

Modified: jmeter/trunk/src/core/org/apache/jmeter/config/gui/AbstractConfigGui.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/config/gui/AbstractConfigGui.java?rev=1697168&r1=1697167&r2=1697168&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/config/gui/AbstractConfigGui.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/config/gui/AbstractConfigGui.java Sun Aug 23 11:41:34
2015
@@ -61,6 +61,6 @@ public abstract class AbstractConfigGui
      */
     @Override
     public Collection<String> getMenuCategories() {
-        return Arrays.asList(new String[] { MenuFactory.CONFIG_ELEMENTS });
+        return Arrays.asList(MenuFactory.CONFIG_ELEMENTS);
     }
 }

Modified: jmeter/trunk/src/core/org/apache/jmeter/control/TransactionSampler.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/control/TransactionSampler.java?rev=1697168&r1=1697167&r2=1697168&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/control/TransactionSampler.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/control/TransactionSampler.java Sun Aug 23 11:41:34
2015
@@ -42,8 +42,7 @@ public class TransactionSampler extends
     private static final long serialVersionUID = 240L;
 
     private static final Set<String> APPLIABLE_CONFIG_CLASSES = new HashSet<>(
-            Arrays.asList(new String[]{
-                    "org.apache.jmeter.config.gui.SimpleConfigGui"}));
+            Arrays.asList("org.apache.jmeter.config.gui.SimpleConfigGui"));
 
     private boolean transactionDone = false;
 

Modified: jmeter/trunk/src/core/org/apache/jmeter/control/gui/AbstractControllerGui.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/control/gui/AbstractControllerGui.java?rev=1697168&r1=1697167&r2=1697168&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/control/gui/AbstractControllerGui.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/control/gui/AbstractControllerGui.java Sun Aug
23 11:41:34 2015
@@ -60,6 +60,6 @@ public abstract class AbstractController
      */
     @Override
     public Collection<String> getMenuCategories() {
-        return Arrays.asList(new String[] { MenuFactory.CONTROLLERS });
+        return Arrays.asList(MenuFactory.CONTROLLERS);
     }
 }

Modified: jmeter/trunk/src/core/org/apache/jmeter/control/gui/TestFragmentControllerGui.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/control/gui/TestFragmentControllerGui.java?rev=1697168&r1=1697167&r2=1697168&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/control/gui/TestFragmentControllerGui.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/control/gui/TestFragmentControllerGui.java Sun
Aug 23 11:41:34 2015
@@ -78,7 +78,7 @@ public class TestFragmentControllerGui e
      */
     @Override
     public Collection<String> getMenuCategories() {
-        return Arrays.asList(new String[] { MenuFactory.FRAGMENTS });
+        return Arrays.asList(MenuFactory.FRAGMENTS);
     }
 
 

Modified: jmeter/trunk/src/core/org/apache/jmeter/processor/gui/AbstractPostProcessorGui.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/processor/gui/AbstractPostProcessorGui.java?rev=1697168&r1=1697167&r2=1697168&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/processor/gui/AbstractPostProcessorGui.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/processor/gui/AbstractPostProcessorGui.java Sun
Aug 23 11:41:34 2015
@@ -39,7 +39,7 @@ public abstract class AbstractPostProces
 
     @Override
     public Collection<String> getMenuCategories() {
-        return Arrays.asList(new String[] { MenuFactory.POST_PROCESSORS });
+        return Arrays.asList(MenuFactory.POST_PROCESSORS);
     }
 
 }

Modified: jmeter/trunk/src/core/org/apache/jmeter/processor/gui/AbstractPreProcessorGui.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/processor/gui/AbstractPreProcessorGui.java?rev=1697168&r1=1697167&r2=1697168&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/processor/gui/AbstractPreProcessorGui.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/processor/gui/AbstractPreProcessorGui.java Sun
Aug 23 11:41:34 2015
@@ -37,7 +37,7 @@ public abstract class AbstractPreProcess
 
     @Override
     public Collection<String> getMenuCategories() {
-        return Arrays.asList(new String[] { MenuFactory.PRE_PROCESSORS });
+        return Arrays.asList(MenuFactory.PRE_PROCESSORS);
     }
 
 }

Modified: jmeter/trunk/src/core/org/apache/jmeter/samplers/gui/AbstractSamplerGui.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/samplers/gui/AbstractSamplerGui.java?rev=1697168&r1=1697167&r2=1697168&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/samplers/gui/AbstractSamplerGui.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/samplers/gui/AbstractSamplerGui.java Sun Aug 23
11:41:34 2015
@@ -60,6 +60,6 @@ public abstract class AbstractSamplerGui
      */
     @Override
     public Collection<String> getMenuCategories() {
-        return Arrays.asList(new String[] { MenuFactory.SAMPLERS });
+        return Arrays.asList(MenuFactory.SAMPLERS);
     }
 }

Modified: jmeter/trunk/src/core/org/apache/jmeter/threads/gui/AbstractThreadGroupGui.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/threads/gui/AbstractThreadGroupGui.java?rev=1697168&r1=1697167&r2=1697168&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/threads/gui/AbstractThreadGroupGui.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/threads/gui/AbstractThreadGroupGui.java Sun Aug
23 11:41:34 2015
@@ -60,7 +60,7 @@ public abstract class AbstractThreadGrou
 
     @Override
     public Collection<String> getMenuCategories() {
-        return Arrays.asList(new String[] { MenuFactory.THREADS });
+        return Arrays.asList(MenuFactory.THREADS);
     }
 
     @Override

Modified: jmeter/trunk/src/core/org/apache/jmeter/timers/gui/AbstractTimerGui.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/timers/gui/AbstractTimerGui.java?rev=1697168&r1=1697167&r2=1697168&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/timers/gui/AbstractTimerGui.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/timers/gui/AbstractTimerGui.java Sun Aug 23 11:41:34
2015
@@ -61,6 +61,6 @@ public abstract class AbstractTimerGui e
      */
     @Override
     public Collection<String> getMenuCategories() {
-        return Arrays.asList(new String[] { MenuFactory.TIMERS });
+        return Arrays.asList(MenuFactory.TIMERS);
     }
 }

Modified: jmeter/trunk/src/core/org/apache/jmeter/visualizers/gui/AbstractListenerGui.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/visualizers/gui/AbstractListenerGui.java?rev=1697168&r1=1697167&r2=1697168&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/visualizers/gui/AbstractListenerGui.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/visualizers/gui/AbstractListenerGui.java Sun Aug
23 11:41:34 2015
@@ -60,7 +60,7 @@ public abstract class AbstractListenerGu
      */
     @Override
     public Collection<String> getMenuCategories() {
-        return Arrays.asList(new String[] { MenuFactory.LISTENERS });
+        return Arrays.asList(MenuFactory.LISTENERS);
     }
 
 }

Modified: jmeter/trunk/src/protocol/ftp/org/apache/jmeter/protocol/ftp/sampler/FTPSampler.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/ftp/org/apache/jmeter/protocol/ftp/sampler/FTPSampler.java?rev=1697168&r1=1697167&r2=1697168&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/ftp/org/apache/jmeter/protocol/ftp/sampler/FTPSampler.java (original)
+++ jmeter/trunk/src/protocol/ftp/org/apache/jmeter/protocol/ftp/sampler/FTPSampler.java Sun
Aug 23 11:41:34 2015
@@ -59,10 +59,11 @@ public class FTPSampler extends Abstract
     private static final Logger log = LoggingManager.getLoggerForClass();
 
     private static final Set<String> APPLIABLE_CONFIG_CLASSES = new HashSet<>(
-            Arrays.asList(new String[]{
+            Arrays.asList(
                     "org.apache.jmeter.config.gui.LoginConfigGui",
                     "org.apache.jmeter.protocol.ftp.config.gui.FtpConfigGui",
-                    "org.apache.jmeter.config.gui.SimpleConfigGui"}));
+                    "org.apache.jmeter.config.gui.SimpleConfigGui"
+            ));
     
     public static final String SERVER = "FTPSampler.server"; // $NON-NLS-1$
 

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/HttpMirrorControlGui.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/HttpMirrorControlGui.java?rev=1697168&r1=1697167&r2=1697168&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/HttpMirrorControlGui.java
(original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/HttpMirrorControlGui.java
Sun Aug 23 11:41:34 2015
@@ -101,7 +101,7 @@ public class HttpMirrorControlGui extend
 
     @Override
     public Collection<String> getMenuCategories() {
-        return Arrays.asList(new String[] { MenuFactory.NON_TEST_ELEMENTS });
+        return Arrays.asList(MenuFactory.NON_TEST_ELEMENTS);
     }
 
     @Override

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/gui/ProxyControlGui.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/gui/ProxyControlGui.java?rev=1697168&r1=1697167&r2=1697168&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/gui/ProxyControlGui.java
(original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/gui/ProxyControlGui.java
Sun Aug 23 11:41:34 2015
@@ -304,7 +304,7 @@ public class ProxyControlGui extends Log
     /** {@inheritDoc} */
     @Override
     public Collection<String> getMenuCategories() {
-        return Arrays.asList(new String[] { MenuFactory.NON_TEST_ELEMENTS });
+        return Arrays.asList(MenuFactory.NON_TEST_ELEMENTS);
     }
 
     /** {@inheritDoc} */

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java?rev=1697168&r1=1697167&r2=1697168&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
(original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
Sun Aug 23 11:41:34 2015
@@ -101,7 +101,7 @@ public abstract class HTTPSamplerBase ex
     private static final Logger log = LoggingManager.getLoggerForClass();
 
     private static final Set<String> APPLIABLE_CONFIG_CLASSES = new HashSet<>(
-            Arrays.asList(new String[]{
+            Arrays.asList(
                     "org.apache.jmeter.config.gui.LoginConfigGui",
                     "org.apache.jmeter.protocol.http.config.gui.HttpDefaultsGui",
                     "org.apache.jmeter.config.gui.SimpleConfigGui",
@@ -110,7 +110,8 @@ public abstract class HTTPSamplerBase ex
                     "org.apache.jmeter.protocol.http.gui.DNSCachePanel",
                     "org.apache.jmeter.protocol.http.gui.AuthPanel",
                     "org.apache.jmeter.protocol.http.gui.CacheManagerGui",
-                    "org.apache.jmeter.protocol.http.gui.CookiePanel"}));
+                    "org.apache.jmeter.protocol.http.gui.CookiePanel"
+            ));
     
     //+ JMX names - do not change
     public static final String ARGUMENTS = "HTTPsampler.Arguments"; // $NON-NLS-1$

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HttpWebdav.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HttpWebdav.java?rev=1697168&r1=1697167&r2=1697168&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HttpWebdav.java
(original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HttpWebdav.java
Sun Aug 23 11:41:34 2015
@@ -32,7 +32,7 @@ import org.apache.jmeter.protocol.http.u
  */
 public final class HttpWebdav extends HttpEntityEnclosingRequestBase {
     private static final Set<String> WEBDAV_METHODS =
-            new HashSet<>(Arrays.asList(new String[]{
+            new HashSet<>(Arrays.asList(
                     HTTPConstants.PROPFIND,
                     HTTPConstants.PROPPATCH,
                     HTTPConstants.MKCOL,
@@ -42,7 +42,7 @@ public final class HttpWebdav extends Ht
                     HTTPConstants.UNLOCK,
                     HTTPConstants.REPORT,
                     HTTPConstants.MKCALENDAR
-            }));
+            ));
     
     private String davMethod;
 
@@ -69,4 +69,4 @@ public final class HttpWebdav extends Ht
     public static boolean isWebdavMethod(String method) {
         return WEBDAV_METHODS.contains(method);
     }
-}
\ No newline at end of file
+}

Modified: jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/sampler/BSFSampler.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/sampler/BSFSampler.java?rev=1697168&r1=1697167&r2=1697168&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/sampler/BSFSampler.java
(original)
+++ jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/sampler/BSFSampler.java
Sun Aug 23 11:41:34 2015
@@ -47,8 +47,7 @@ import org.apache.log.Logger;
 public class BSFSampler extends BSFTestElement implements Sampler, TestBean, ConfigMergabilityIndicator
{
 
     private static final Set<String> APPLIABLE_CONFIG_CLASSES = new HashSet<>(
-            Arrays.asList(new String[]{
-                    "org.apache.jmeter.config.gui.SimpleConfigGui"}));
+            Arrays.asList("org.apache.jmeter.config.gui.SimpleConfigGui"));
 
     private static final long serialVersionUID = 240L;
 

Modified: jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/sampler/BeanShellSampler.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/sampler/BeanShellSampler.java?rev=1697168&r1=1697167&r2=1697168&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/sampler/BeanShellSampler.java
(original)
+++ jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/sampler/BeanShellSampler.java
Sun Aug 23 11:41:34 2015
@@ -42,8 +42,7 @@ import org.apache.log.Logger;
 public class BeanShellSampler extends BeanShellTestElement implements Sampler, Interruptible,
ConfigMergabilityIndicator
 {
     private static final Set<String> APPLIABLE_CONFIG_CLASSES = new HashSet<>(
-            Arrays.asList(new String[]{
-                    "org.apache.jmeter.config.gui.SimpleConfigGui"}));
+            Arrays.asList("org.apache.jmeter.config.gui.SimpleConfigGui"));
     
     private static final Logger log = LoggingManager.getLoggerForClass();
 

Modified: jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/sampler/JSR223Sampler.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/sampler/JSR223Sampler.java?rev=1697168&r1=1697167&r2=1697168&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/sampler/JSR223Sampler.java
(original)
+++ jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/sampler/JSR223Sampler.java
Sun Aug 23 11:41:34 2015
@@ -40,8 +40,7 @@ import org.apache.log.Logger;
 
 public class JSR223Sampler extends JSR223TestElement implements Cloneable, Sampler, TestBean,
ConfigMergabilityIndicator {
     private static final Set<String> APPLIABLE_CONFIG_CLASSES = new HashSet<>(
-            Arrays.asList(new String[]{
-                    "org.apache.jmeter.config.gui.SimpleConfigGui"}));
+            Arrays.asList("org.apache.jmeter.config.gui.SimpleConfigGui"));
 
     private static final long serialVersionUID = 234L;
 

Modified: jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/sampler/JavaSampler.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/sampler/JavaSampler.java?rev=1697168&r1=1697167&r2=1697168&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/sampler/JavaSampler.java
(original)
+++ jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/sampler/JavaSampler.java
Sun Aug 23 11:41:34 2015
@@ -49,9 +49,10 @@ public class JavaSampler extends Abstrac
     private static final long serialVersionUID = 232L; // Remember to change this when the
class changes ...
 
     private static final Set<String> APPLIABLE_CONFIG_CLASSES = new HashSet<>(
-            Arrays.asList(new String[]{
+            Arrays.asList(
                     "org.apache.jmeter.protocol.java.config.gui.JavaConfigGui",
-                    "org.apache.jmeter.config.gui.SimpleConfigGui"}));
+                    "org.apache.jmeter.config.gui.SimpleConfigGui"
+            ));
 
     /**
      * Set used to register instances which implement tearDownTest.

Modified: jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/sampler/JDBCSampler.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/sampler/JDBCSampler.java?rev=1697168&r1=1697167&r2=1697168&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/sampler/JDBCSampler.java
(original)
+++ jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/sampler/JDBCSampler.java
Sun Aug 23 11:41:34 2015
@@ -43,8 +43,7 @@ import org.apache.log.Logger;
  */
 public class JDBCSampler extends AbstractJDBCTestElement implements Sampler, TestBean, ConfigMergabilityIndicator
{
     private static final Set<String> APPLIABLE_CONFIG_CLASSES = new HashSet<>(
-            Arrays.asList(new String[]{
-                    "org.apache.jmeter.config.gui.SimpleConfigGui"}));
+            Arrays.asList("org.apache.jmeter.config.gui.SimpleConfigGui"));
     
     private static final long serialVersionUID = 234L;
     

Modified: jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java?rev=1697168&r1=1697167&r2=1697168&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java
(original)
+++ jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java
Sun Aug 23 11:41:34 2015
@@ -71,10 +71,11 @@ public class LDAPExtSampler extends Abst
     private static final long serialVersionUID = 240L;
 
     private static final Set<String> APPLIABLE_CONFIG_CLASSES = new HashSet<>(
-            Arrays.asList(new String[]{
+            Arrays.asList(
                     "org.apache.jmeter.protocol.ldap.config.gui.LdapConfigGui",
                     "org.apache.jmeter.protocol.ldap.config.gui.LdapExtConfigGui",
-                    "org.apache.jmeter.config.gui.SimpleConfigGui"}));
+                    "org.apache.jmeter.config.gui.SimpleConfigGui"
+            ));
 
     /*
      * The following strings are used in the test plan, and the values must not be changed

Modified: jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LDAPSampler.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LDAPSampler.java?rev=1697168&r1=1697167&r2=1697168&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LDAPSampler.java
(original)
+++ jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LDAPSampler.java
Sun Aug 23 11:41:34 2015
@@ -54,10 +54,11 @@ public class LDAPSampler extends Abstrac
     private static final long serialVersionUID = 240L;
 
     private static final Set<String> APPLIABLE_CONFIG_CLASSES = new HashSet<>(
-            Arrays.asList(new String[]{
+            Arrays.asList(
                     "org.apache.jmeter.config.gui.LoginConfigGui",
                     "org.apache.jmeter.protocol.ldap.config.gui.LdapConfigGui",
-                    "org.apache.jmeter.config.gui.SimpleConfigGui"}));
+                    "org.apache.jmeter.config.gui.SimpleConfigGui"
+            ));
     
     public static final String SERVERNAME = "servername"; //$NON-NLS-1$
 

Modified: jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/mail/sampler/MailReaderSampler.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/mail/sampler/MailReaderSampler.java?rev=1697168&r1=1697167&r2=1697168&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/mail/sampler/MailReaderSampler.java
(original)
+++ jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/mail/sampler/MailReaderSampler.java
Sun Aug 23 11:41:34 2015
@@ -66,8 +66,7 @@ public class MailReaderSampler extends A
     private static final long serialVersionUID = 240L;
 
     private static final Set<String> APPLIABLE_CONFIG_CLASSES = new HashSet<>(
-            Arrays.asList(new String[]{
-                    "org.apache.jmeter.config.gui.SimpleConfigGui"}));
+            Arrays.asList("org.apache.jmeter.config.gui.SimpleConfigGui"));
 
     //+ JMX attributes - do not change the values
     private static final String SERVER_TYPE = "host_type"; // $NON-NLS-1$

Modified: jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/SmtpSampler.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/SmtpSampler.java?rev=1697168&r1=1697167&r2=1697168&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/SmtpSampler.java
(original)
+++ jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/SmtpSampler.java
Sun Aug 23 11:41:34 2015
@@ -65,8 +65,7 @@ public class SmtpSampler extends Abstrac
     private static final long serialVersionUID = 1L;
 
     private static final Set<String> APPLIABLE_CONFIG_CLASSES = new HashSet<>(
-            Arrays.asList(new String[]{
-                    "org.apache.jmeter.config.gui.SimpleConfigGui"}));
+            Arrays.asList("org.apache.jmeter.config.gui.SimpleConfigGui"));
 
     private static final Logger log = LoggingManager.getLoggerForClass();
 

Modified: jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/SystemSampler.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/SystemSampler.java?rev=1697168&r1=1697167&r2=1697168&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/SystemSampler.java
(original)
+++ jmeter/trunk/src/protocol/native/org/apache/jmeter/protocol/system/SystemSampler.java
Sun Aug 23 11:41:34 2015
@@ -81,8 +81,7 @@ public class SystemSampler extends Abstr
     private static final Logger log = LoggingManager.getLoggerForClass();
 
     private static final Set<String> APPLIABLE_CONFIG_CLASSES = new HashSet<>(
-            Arrays.asList(new String[]{
-                    "org.apache.jmeter.config.gui.SimpleConfigGui"}));
+            Arrays.asList("org.apache.jmeter.config.gui.SimpleConfigGui"));
 
     public static final int DEFAULT_RETURN_CODE = 0;
 

Modified: jmeter/trunk/src/protocol/tcp/org/apache/jmeter/protocol/tcp/sampler/TCPSampler.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/tcp/org/apache/jmeter/protocol/tcp/sampler/TCPSampler.java?rev=1697168&r1=1697167&r2=1697168&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/tcp/org/apache/jmeter/protocol/tcp/sampler/TCPSampler.java (original)
+++ jmeter/trunk/src/protocol/tcp/org/apache/jmeter/protocol/tcp/sampler/TCPSampler.java Sun
Aug 23 11:41:34 2015
@@ -59,10 +59,11 @@ public class TCPSampler extends Abstract
     private static final Logger log = LoggingManager.getLoggerForClass();
 
     private static final Set<String> APPLIABLE_CONFIG_CLASSES = new HashSet<>(
-            Arrays.asList(new String[]{
+            Arrays.asList(
                     "org.apache.jmeter.config.gui.LoginConfigGui",
                     "org.apache.jmeter.protocol.tcp.config.gui.TCPConfigGui",
-                    "org.apache.jmeter.config.gui.SimpleConfigGui"}));
+                    "org.apache.jmeter.config.gui.SimpleConfigGui"
+            ));
 
     //++ JMX file constants - do not change
     public static final String SERVER = "TCPSampler.server"; //$NON-NLS-1$



Mime
View raw message