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,551 ****
synchronized (this) {
closeRequested = true;
if (streams.size() !=0) {
Set<InputStream> copy = streams;
! streams = new HashSet<InputStream>();
for (InputStream is: copy)
is.close();
}
if (jzfile != 0) {
--- 541,551 ----
synchronized (this) {
closeRequested = true;
if (streams.size() !=0) {
Set<InputStream> copy = streams;
! streams = new HashSet<>();
for (InputStream is: copy)
is.close();
}
if (jzfile != 0) {