Uploaded image for project: 'Brooklyn'
  1. Brooklyn
  2. BROOKLYN-461

Merging config keys: CollectionMerger.Ref.equals always return true

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 0.11.0
    • 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;
      

      Attachments

        Activity

          People

            aled.sage Aled Sage
            lifove JC
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: