< prev index next >

src/java.base/share/classes/com/sun/java/util/jar/pack/Package.java

Print this page

        

@@ -1208,11 +1208,11 @@
         // Sort the remaining non-class files.
         // We sort them by file type.
         // This keeps files of similar format near each other.
         // Put class files at the end, keeping their fixed order.
         // Be sure the JAR file's required manifest stays at the front. (4893051)
-        Collections.sort(files, new Comparator<File>() {
+        Collections.sort(files, new Comparator<>() {
                 public int compare(File r0, File r1) {
                     // Get the file name.
                     String f0 = r0.nameString;
                     String f1 = r1.nameString;
                     if (f0.equals(f1)) return 0;
< prev index next >