mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
[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:
parent
64d9a97d44
commit
dbd078af9c
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user