src/share/classes/java/util/zip/ZipFile.java

Print this page
rev 3186 : 6880112: Project Coin: Port JDK core library code to use diamond operator

@@ -541,11 +541,11 @@
         synchronized (this) {
             closeRequested = true;
 
             if (streams.size() !=0) {
                 Set<InputStream> copy = streams;
-                streams = new HashSet<InputStream>();
+                streams = new HashSet<>();
                 for (InputStream is: copy)
                     is.close();
             }
 
             if (jzfile != 0) {