You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (JIRA)" <ji...@apache.org> on 2015/06/08 13:28:00 UTC

[jira] [Commented] (SLING-4784) Implement equals() and hashCode() for ValueMapDecorator

    [ https://issues.apache.org/jira/browse/SLING-4784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14577047#comment-14577047 ] 

Konrad Windszus commented on SLING-4784:
----------------------------------------

I implemented both methods in rev.1684152. Only for array values the equal does not return true for the same values, because array comparison only returns true if it really is the same reference.

> Implement equals() and hashCode() for ValueMapDecorator
> -------------------------------------------------------
>
>                 Key: SLING-4784
>                 URL: https://issues.apache.org/jira/browse/SLING-4784
>             Project: Sling
>          Issue Type: Bug
>    Affects Versions: API 2.10.0
>            Reporter: Konrad Windszus
>            Assignee: Konrad Windszus
>            Priority: Minor
>             Fix For: API 2.10.0
>
>
> Both equals() and hashCode() should be implemented for ValueMapDecorator (which eases the usage of such objects in tests and also might improve the usage in Collections).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)