< prev index next >

src/jdk.zipfs/share/classes/jdk/nio/zipfs/ZipPath.java

Print this page
rev 54573 : 8222532: (zipfs) Performance regression when writing ZipFileSystem entries in parallel
Reviewed-by: TBD

*** 674,684 **** throw new UnsupportedOperationException(); } @Override public Iterator<Path> iterator() { ! return new Iterator<Path>() { private int i = 0; @Override public boolean hasNext() { return (i < getNameCount()); --- 674,684 ---- throw new UnsupportedOperationException(); } @Override public Iterator<Path> iterator() { ! return new Iterator<>() { private int i = 0; @Override public boolean hasNext() { return (i < getNameCount());
*** 744,755 **** } void setAttribute(String attribute, Object value, LinkOption... options) throws IOException { ! String type = null; ! String attr = null; int colonPos = attribute.indexOf(':'); if (colonPos == -1) { type = "basic"; attr = attribute; } else { --- 744,755 ---- } void setAttribute(String attribute, Object value, LinkOption... options) throws IOException { ! String type; ! String attr; int colonPos = attribute.indexOf(':'); if (colonPos == -1) { type = "basic"; attr = attribute; } else {
*** 770,781 **** Map<String, Object> readAttributes(String attributes, LinkOption... options) throws IOException { ! String view = null; ! String attrs = null; int colonPos = attributes.indexOf(':'); if (colonPos == -1) { view = "basic"; attrs = attributes; } else { --- 770,781 ---- Map<String, Object> readAttributes(String attributes, LinkOption... options) throws IOException { ! String view; ! String attrs; int colonPos = attributes.indexOf(':'); if (colonPos == -1) { view = "basic"; attrs = attributes; } else {
< prev index next >