commit | 752039e5c3ed19e8c17c8a698ae575cadf5259f0 | [log] [tgz] |
---|---|---|
author | Niklas Gustavsson <ngn@apache.org> | Sun Jun 19 11:58:07 2011 +0000 |
committer | Niklas Gustavsson <ngn@apache.org> | Sun Jun 19 11:58:07 2011 +0000 |
tree | 7eb98c02e86c4a17f76704f7544ee1ec2bd7e7c2 | |
parent | e630391c8b6137a09f6e862f0a43001fddf4a20d [diff] |
Simplified hashCode() of NativeFtpFile (FTPSERVER-375) git-svn-id: https://svn.apache.org/repos/asf/mina/ftpserver/trunk@1137353 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/core/src/main/java/org/apache/ftpserver/filesystem/nativefs/impl/NativeFtpFile.java b/core/src/main/java/org/apache/ftpserver/filesystem/nativefs/impl/NativeFtpFile.java index c53f7c0..6e833dc 100644 --- a/core/src/main/java/org/apache/ftpserver/filesystem/nativefs/impl/NativeFtpFile.java +++ b/core/src/main/java/org/apache/ftpserver/filesystem/nativefs/impl/NativeFtpFile.java
@@ -415,11 +415,10 @@ @Override public int hashCode() { - final int prime = 31; try { - return prime + ((file == null) ? 0 : file.getCanonicalFile().hashCode()); + return file.getCanonicalFile().hashCode(); } catch (IOException e) { - return prime; + return 0; } } }