[github-350] simplify cloneCellProperties. Thanks to XenoAmess. This closes #350

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902758 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2022-07-15 22:57:34 +00:00
parent 64d9a97d44
commit dbd078af9c

View File

@ -83,11 +83,7 @@ public final class PropertyTemplate {
}
private static Map<String, Object> cloneCellProperties(Map<String, Object> properties) {
Map<String, Object> newProperties = new HashMap<>();
for(Map.Entry<String, Object> entry : properties.entrySet()) {
newProperties.put(entry.getKey(), entry.getValue());
}
return newProperties;
return new HashMap<>(properties);
}
/**