--- old/src/java.base/linux/classes/sun/nio/fs/LinuxWatchService.java 2015-04-22 17:43:36.083422390 -0700 +++ new/src/java.base/linux/classes/sun/nio/fs/LinuxWatchService.java 2015-04-22 17:43:35.907422386 -0700 @@ -190,7 +190,7 @@ this.watcher = watcher; this.ifd = ifd; this.socketpair = sp; - this.wdToKey = new HashMap(); + this.wdToKey = new HashMap<>(); this.address = unsafe.allocateMemory(BUFFER_SIZE); } @@ -457,7 +457,7 @@ private static native int poll(int fd1, int fd2) throws UnixException; static { - AccessController.doPrivileged(new PrivilegedAction() { + AccessController.doPrivileged(new PrivilegedAction<>() { public Void run() { System.loadLibrary("nio"); return null;