No need to check for null when using instanceof
authorSebastian Bazley <sebb@apache.org>
Mon, 20 Jun 2011 18:15:11 +0000 (18:15 +0000)
committerSebastian Bazley <sebb@apache.org>
Mon, 20 Jun 2011 18:15:11 +0000 (18:15 +0000)
git-svn-id: https://svn.apache.org/repos/asf/mina/ftpserver/trunk@1137729 13f79535-47bb-0310-9956-ffa450edef68

core/src/main/java/org/apache/ftpserver/filesystem/nativefs/impl/NativeFtpFile.java

index 6e833dc..4052ff6 100644 (file)
@@ -396,7 +396,7 @@ public class NativeFtpFile implements FtpFile {
 
     @Override
     public boolean equals(Object obj) {
-        if (obj != null && obj instanceof NativeFtpFile) {
+        if (obj instanceof NativeFtpFile) {
             File thisCanonicalFile;
             File otherCanonicalFile;
             try {