You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by ng...@apache.org on 2013/08/12 00:16:35 UTC
[40/50] [abbrv] git commit: No need to check for null when using
instanceof
No need to check for null when using instanceof
git-svn-id: https://svn.apache.org/repos/asf/mina/ftpserver/trunk@1137729 13f79535-47bb-0310-9956-ffa450edef68
Project: http://git-wip-us.apache.org/repos/asf/mina-ftpserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/mina-ftpserver/commit/a7251f68
Tree: http://git-wip-us.apache.org/repos/asf/mina-ftpserver/tree/a7251f68
Diff: http://git-wip-us.apache.org/repos/asf/mina-ftpserver/diff/a7251f68
Branch: refs/heads/trunk
Commit: a7251f68ff5e2c4465db73a83612a32dc4ecdfa0
Parents: 54cdbbb
Author: Sebastian Bazley <se...@apache.org>
Authored: Mon Jun 20 18:15:11 2011 +0000
Committer: Sebastian Bazley <se...@apache.org>
Committed: Mon Jun 20 18:15:11 2011 +0000
----------------------------------------------------------------------
.../apache/ftpserver/filesystem/nativefs/impl/NativeFtpFile.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mina-ftpserver/blob/a7251f68/core/src/main/java/org/apache/ftpserver/filesystem/nativefs/impl/NativeFtpFile.java
----------------------------------------------------------------------
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 6e833dc..4052ff6 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
@@ -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 {