jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1338465 - /jmeter/trunk/src/core/org/apache/jmeter/gui/action/ActionRouter.java
Date Mon, 14 May 2012 22:32:21 GMT
Author: sebb
Date: Mon May 14 22:32:20 2012
New Revision: 1338465

URL: http://svn.apache.org/viewvc?rev=1338465&view=rev
Log:
Bug 53226 - Faster startup
No need to check for abstract classes, as these are eliminated by the class finder

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/action/ActionRouter.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/action/ActionRouter.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/gui/action/ActionRouter.java?rev=1338465&r1=1338464&r2=1338465&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/gui/action/ActionRouter.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/gui/action/ActionRouter.java Mon May 14 22:32:20
2012
@@ -269,16 +269,14 @@ public final class ActionRouter implemen
             }
             for (String strClassName : listClasses) {
                 Class<?> commandClass = Class.forName(strClassName);
-                if (!Modifier.isAbstract(commandClass.getModifiers())) {
-                    Command command = (Command) commandClass.newInstance();
-                    for (String commandName : command.getActionNames()) {
-                        Set<Command> commandObjects = commands.get(commandName);
-                        if (commandObjects == null) {
-                            commandObjects = new HashSet<Command>();
-                            commands.put(commandName, commandObjects);
-                        }
-                        commandObjects.add(command);
+                Command command = (Command) commandClass.newInstance();
+                for (String commandName : command.getActionNames()) {
+                    Set<Command> commandObjects = commands.get(commandName);
+                    if (commandObjects == null) {
+                        commandObjects = new HashSet<Command>();
+                        commands.put(commandName, commandObjects);
                     }
+                    commandObjects.add(command);
                 }
             }
         } catch (HeadlessException e){



Mime
View raw message