8046271: Fix overrides lint warnings in Apple laf code
authordarcy
Mon, 09 Jun 2014 16:24:47 -0700
changeset 25142 5b781839611d
parent 25141 453d3b457f59
child 25143 aade36e70da0
8046271: Fix overrides lint warnings in Apple laf code Reviewed-by: alanb, prr
jdk/src/macosx/classes/com/apple/laf/AquaFileSystemModel.java
--- a/jdk/src/macosx/classes/com/apple/laf/AquaFileSystemModel.java	Mon Jun 09 11:58:27 2014 -0700
+++ b/jdk/src/macosx/classes/com/apple/laf/AquaFileSystemModel.java	Mon Jun 09 16:24:47 2014 -0700
@@ -366,6 +366,11 @@
             final SortableFile otherFile = (SortableFile)other;
             return otherFile.fFile.equals(fFile);
         }
+
+        @Override
+        public int hashCode() {
+            return Objects.hashCode(fFile);
+        }
     }
 
     class LoadFilesThread extends Thread {