jt2594838 commented on a change in pull request #258: [IOTDB-143]Development of 
merge
URL: https://github.com/apache/incubator-iotdb/pull/258#discussion_r314578681
 
 

 ##########
 File path: tsfile/src/main/java/org/apache/iotdb/tsfile/read/common/Path.java
 ##########
 @@ -185,7 +185,7 @@ public int hashCode() {
 
   @Override
   public boolean equals(Object obj) {
-    return obj != null && obj instanceof Path && this.fullPath.equals(((Path) 
obj).fullPath);
+    return obj instanceof Path && this.fullPath.equals(((Path) obj).fullPath);
 
 Review comment:
   instanceof always returns false for null.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to