--- old/src/java.base/share/classes/java/nio/channels/AsynchronousFileChannel.java 2015-04-22 17:43:55.947422850 -0700 +++ new/src/java.base/share/classes/java/nio/channels/AsynchronousFileChannel.java 2015-04-22 17:43:55.779422846 -0700 @@ -296,7 +296,7 @@ public static AsynchronousFileChannel open(Path file, OpenOption... options) throws IOException { - Set set = new HashSet(options.length); + Set set = new HashSet<>(options.length); Collections.addAll(set, options); return open(file, set, null, NO_ATTRIBUTES); }