Use logical 'and' instead of bitwise 'and'
Closes gh-8198
This commit is contained in:
committed by
Stephane Nicoll
parent
b4858882f3
commit
0adab8a2be
@@ -280,8 +280,8 @@ public class EmbeddedMongoAutoConfiguration {
|
||||
if (getClass() == obj.getClass()) {
|
||||
ToStringFriendlyFeatureAwareVersion other = (ToStringFriendlyFeatureAwareVersion) obj;
|
||||
boolean equals = true;
|
||||
equals &= this.features.equals(other.features);
|
||||
equals &= this.version.equals(other.version);
|
||||
equals = equals && this.features.equals(other.features);
|
||||
equals = equals && this.version.equals(other.version);
|
||||
return equals;
|
||||
}
|
||||
return super.equals(obj);
|
||||
|
||||
Reference in New Issue
Block a user