jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1379966 - /jmeter/trunk/src/core/org/apache/jmeter/gui/action/ActionRouter.java
Date Sun, 02 Sep 2012 13:36:44 GMT
Author: pmouawad
Date: Sun Sep  2 13:36:44 2012
New Revision: 1379966

URL: http://svn.apache.org/viewvc?rev=1379966&view=rev
Log:
Use interface instead of Impl
Remove useless code JMeterError is just rethrown

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=1379966&r1=1379965&r2=1379966&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 Sun Sep  2 13:36:44
2012
@@ -228,7 +228,7 @@ public final class ActionRouter implemen
 
     protected void preActionPerformed(Class<? extends Command> action, ActionEvent
e) {
         if (action != null) {
-            HashSet<ActionListener> listenerSet = preActionListeners.get(action.getName());
+            Set<ActionListener> listenerSet = preActionListeners.get(action.getName());
             if (listenerSet != null && listenerSet.size() > 0) {
                 ActionListener[] listeners = listenerSet.toArray(new ActionListener[listenerSet.size()]);
                 for (int i = 0; i < listeners.length; i++) {
@@ -240,7 +240,7 @@ public final class ActionRouter implemen
 
     protected void postActionPerformed(Class<? extends Command> action, ActionEvent
e) {
         if (action != null) {
-            HashSet<ActionListener> listenerSet = postActionListeners.get(action.getName());
+            Set<ActionListener> listenerSet = postActionListeners.get(action.getName());
             if (listenerSet != null && listenerSet.size() > 0) {
                 ActionListener[] listeners = listenerSet.toArray(new ActionListener[listenerSet.size()]);
                 for (int i = 0; i < listeners.length; i++) {
@@ -281,8 +281,6 @@ public final class ActionRouter implemen
             }
         } catch (HeadlessException e){
             log.warn(e.toString());
-        } catch (JMeterError e) {
-            throw e;
         } catch (Exception e) {
             log.error("exception finding action handlers", e);
         }



Mime
View raw message