Use logical 'and' instead of bitwise 'and'
Closes gh-8198
This commit is contained in:
committed by
Stephane Nicoll
parent
b4858882f3
commit
0adab8a2be
@@ -59,9 +59,9 @@ class FileSnapshot {
|
||||
if (obj instanceof FileSnapshot) {
|
||||
FileSnapshot other = (FileSnapshot) obj;
|
||||
boolean equals = this.file.equals(other.file);
|
||||
equals &= this.exists == other.exists;
|
||||
equals &= this.length == other.length;
|
||||
equals &= this.lastModified == other.lastModified;
|
||||
equals = equals && this.exists == other.exists;
|
||||
equals = equals && this.length == other.length;
|
||||
equals = equals && this.lastModified == other.lastModified;
|
||||
return equals;
|
||||
}
|
||||
return super.equals(obj);
|
||||
|
||||
Reference in New Issue
Block a user