[nanoxml] Use Properties.putAll()

GitOrigin-RevId: 3c8deca8ec37c7a0e2144e26c0c2874e046d7c4b
This commit is contained in:
Tagir Valeev
2023-10-21 17:36:33 +02:00
committed by intellij-monorepo-bot
parent 3e51c05b69
commit 4148e4f9db

View File

@@ -455,12 +455,7 @@ public abstract class NonValidator implements IXMLValidator {
@Override
public void elementAttributesProcessed(String name, Properties extraAttributes, String systemId, int lineNr) {
Properties props = currentElements.pop();
Enumeration<Object> enumeration = props.keys();
while (enumeration.hasMoreElements()) {
String key = (String)enumeration.nextElement();
extraAttributes.put(key, props.get(key));
}
extraAttributes.putAll(props);
}
/**