break out of search loop after correct custom action is found
authorDave Brosius <dbrosius@mebigfatguy.com>
Sun, 24 Dec 2017 20:49:39 +0000 (15:49 -0500)
committerDave Brosius <dbrosius@mebigfatguy.com>
Sun, 24 Dec 2017 20:49:39 +0000 (15:49 -0500)
src/main/java/org/apache/commons/scxml2/io/SCXMLReader.java

index eeac7f2..cbe9aea 100644 (file)
@@ -1511,6 +1511,7 @@ public final class SCXMLReader {
                             for (CustomAction ca : configuration.customActions) {
                                 if (ca.getNamespaceURI().equals(nsURI) && ca.getLocalName().equals(name)) {
                                     customAction = ca;
+                                    break;
                                 }
                             }
                         }