remove collecting of attributes as they are not used
authorDave Brosius <dbrosius@mebigfatguy.com>
Sun, 24 Dec 2017 21:59:06 +0000 (16:59 -0500)
committerDave Brosius <dbrosius@mebigfatguy.com>
Sun, 24 Dec 2017 21:59:06 +0000 (16:59 -0500)
src/main/java/org/apache/commons/scxml2/io/SCXMLReader.java

index cbe9aea..8446b0e 100644 (file)
@@ -2016,12 +2016,10 @@ public final class SCXMLReader {
             actionWrapper.getNamespaces().putAll(namespaces);
         }
 
-        Map<String, String> attributes = new HashMap<>();
         for (int i = 0; i < reader.getAttributeCount(); i++) {
             String name = reader.getAttributeLocalName(i);
             String qname = createQualifiedName(reader.getAttributePrefix(i), name);
             String value = reader.getAttributeValue(i);
-            attributes.put(qname, value);
             String setter = "set" + name.substring(0, 1).toUpperCase() + name.substring(1);
             Method method;
             try {