Skip to content

Commit a2a43ad

Browse files
dr0iblackwinter
andauthored
Update metafacture-xml/src/main/java/org/metafacture/xml/SimpleXmlEncoder.java
Co-authored-by: Jens Wille <[email protected]>
1 parent cb6d768 commit a2a43ad

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

metafacture-xml/src/main/java/org/metafacture/xml/SimpleXmlEncoder.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -371,9 +371,7 @@ private boolean isDefaultNamespace(final String ns) {
371371
}
372372

373373
private void propertiesToMap(final Properties properties) {
374-
for (final Entry<Object, Object> entry : properties.entrySet()) {
375-
namespaces.put(entry.getKey().toString(), entry.getValue().toString());
376-
}
374+
properties.forEach((k, v) -> namespaces.put(k.toString(), v.toString()));
377375
}
378376

379377
/**

0 commit comments

Comments
 (0)