< prev index next >
src/java.base/share/classes/java/nio/channels/AsynchronousFileChannel.java
Print this page
@@ -294,11 +294,11 @@
* write access if the file is opened for writing
*/
public static AsynchronousFileChannel open(Path file, OpenOption... options)
throws IOException
{
- Set<OpenOption> set = new HashSet<OpenOption>(options.length);
+ Set<OpenOption> set = new HashSet<>(options.length);
Collections.addAll(set, options);
return open(file, set, null, NO_ATTRIBUTES);
}
/**
< prev index next >