aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/poifs/eventfilesystem/POIFSReaderRegistry.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/poi/poifs/eventfilesystem/POIFSReaderRegistry.java')
-rw-r--r--src/java/org/apache/poi/poifs/eventfilesystem/POIFSReaderRegistry.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/java/org/apache/poi/poifs/eventfilesystem/POIFSReaderRegistry.java b/src/java/org/apache/poi/poifs/eventfilesystem/POIFSReaderRegistry.java
index 1ea85f7c81..0a6c29bd9f 100644
--- a/src/java/org/apache/poi/poifs/eventfilesystem/POIFSReaderRegistry.java
+++ b/src/java/org/apache/poi/poifs/eventfilesystem/POIFSReaderRegistry.java
@@ -57,9 +57,9 @@ class POIFSReaderRegistry
POIFSReaderRegistry()
{
- omnivorousListeners = new HashSet<POIFSReaderListener>();
- selectiveListeners = new HashMap<POIFSReaderListener, Set<DocumentDescriptor>>();
- chosenDocumentDescriptors = new HashMap<DocumentDescriptor,Set<POIFSReaderListener>>();
+ omnivorousListeners = new HashSet<>();
+ selectiveListeners = new HashMap<>();
+ chosenDocumentDescriptors = new HashMap<>();
}
/**
@@ -85,7 +85,7 @@ class POIFSReaderRegistry
{
// this listener has not registered before
- descriptors = new HashSet<DocumentDescriptor>();
+ descriptors = new HashSet<>();
selectiveListeners.put(listener, descriptors);
}
DocumentDescriptor descriptor = new DocumentDescriptor(path,
@@ -104,7 +104,7 @@ class POIFSReaderRegistry
{
// nobody was listening for this document before
- listeners = new HashSet<POIFSReaderListener>();
+ listeners = new HashSet<>();
chosenDocumentDescriptors.put(descriptor, listeners);
}
listeners.add(listener);
@@ -143,7 +143,7 @@ class POIFSReaderRegistry
Iterator<POIFSReaderListener> getListeners(final POIFSDocumentPath path, final String name)
{
- Set<POIFSReaderListener> rval = new HashSet<POIFSReaderListener>(omnivorousListeners);
+ Set<POIFSReaderListener> rval = new HashSet<>(omnivorousListeners);
Set<POIFSReaderListener> selectiveListenersInner =
chosenDocumentDescriptors.get(new DocumentDescriptor(path, name));