You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by "Aled Sage (JIRA)" <ji...@apache.org> on 2017/04/11 09:34:41 UTC

[jira] [Assigned] (BROOKLYN-461) Condition that always return true

     [ https://issues.apache.org/jira/browse/BROOKLYN-461?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aled Sage reassigned BROOKLYN-461:
----------------------------------

    Assignee: Aled Sage

> Condition that always return true
> ---------------------------------
>
>                 Key: BROOKLYN-461
>                 URL: https://issues.apache.org/jira/browse/BROOKLYN-461
>             Project: Brooklyn
>          Issue Type: Bug
>            Reporter: JC
>            Assignee: Aled Sage
>            Priority: Trivial
>
> 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
> {code}
> 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             }
> {code}
> Line 202 should be like this?
> {code}
> 202                 return this.obj == ((Ref)o).obj;
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)