You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by se...@apache.org on 2011/06/20 20:15:45 UTC

svn commit: r1137730 - /mina/ftpserver/branches/1.0.x/core/src/main/java/org/apache/ftpserver/filesystem/nativefs/impl/NativeFtpFile.java

Author: sebb
Date: Mon Jun 20 18:15:45 2011
New Revision: 1137730

URL: http://svn.apache.org/viewvc?rev=1137730&view=rev
Log:
No need to check for null when using instanceof

Modified:
    mina/ftpserver/branches/1.0.x/core/src/main/java/org/apache/ftpserver/filesystem/nativefs/impl/NativeFtpFile.java

Modified: mina/ftpserver/branches/1.0.x/core/src/main/java/org/apache/ftpserver/filesystem/nativefs/impl/NativeFtpFile.java
URL: http://svn.apache.org/viewvc/mina/ftpserver/branches/1.0.x/core/src/main/java/org/apache/ftpserver/filesystem/nativefs/impl/NativeFtpFile.java?rev=1137730&r1=1137729&r2=1137730&view=diff
==============================================================================
--- mina/ftpserver/branches/1.0.x/core/src/main/java/org/apache/ftpserver/filesystem/nativefs/impl/NativeFtpFile.java (original)
+++ mina/ftpserver/branches/1.0.x/core/src/main/java/org/apache/ftpserver/filesystem/nativefs/impl/NativeFtpFile.java Mon Jun 20 18:15:45 2011
@@ -518,7 +518,7 @@ public class NativeFtpFile implements Ft
 
     @Override
     public boolean equals(Object obj) {
-        if (obj != null && obj instanceof NativeFtpFile) {
+        if (obj instanceof NativeFtpFile) {
             File thisCanonicalFile;
             File otherCanonicalFile;
             try {