Details
-
Bug
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
None
-
None
Description
Hi
In recent github mirror of broolyn-server, I've found the following issue in equals implementation.
Path: utils/common/src/main/java/org/apache/brooklyn/util/collections/CollectionMerger.java
196 197 @Override 198 public boolean equals(Object o) { 199 if (!(o instanceof Ref)) { 200 return false; 201 } 202 return ((Ref)o).obj == ((Ref)o).obj; 203 }
Line 202 should be like this?
202 return this.obj == ((Ref)o).obj;