aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/hpsf/wellknown/SectionIDMap.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/poi/hpsf/wellknown/SectionIDMap.java')
-rw-r--r--src/java/org/apache/poi/hpsf/wellknown/SectionIDMap.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/org/apache/poi/hpsf/wellknown/SectionIDMap.java b/src/java/org/apache/poi/hpsf/wellknown/SectionIDMap.java
index d8e660f31c..07fb6af4ea 100644
--- a/src/java/org/apache/poi/hpsf/wellknown/SectionIDMap.java
+++ b/src/java/org/apache/poi/hpsf/wellknown/SectionIDMap.java
@@ -45,7 +45,7 @@ public class SectionIDMap {
* The default section ID map. It maps section format IDs to {@link PropertyIDMap PropertyIDMaps}
*/
private static ThreadLocal<Map<ClassID,PropertyIDMap>> defaultMap =
- new ThreadLocal<Map<ClassID,PropertyIDMap>>();
+ new ThreadLocal<>();
/**
* <p>The SummaryInformation's section's format ID.</p>
@@ -79,7 +79,7 @@ public class SectionIDMap {
public static SectionIDMap getInstance() {
Map<ClassID,PropertyIDMap> m = defaultMap.get();
if (m == null) {
- m = new HashMap<ClassID,PropertyIDMap>();
+ m = new HashMap<>();
m.put(SUMMARY_INFORMATION_ID, PropertyIDMap.getSummaryInformationProperties());
m.put(DOCUMENT_SUMMARY_INFORMATION_ID[0], PropertyIDMap.getDocumentSummaryInformationProperties());
defaultMap.set(m);