[infinispan-issues] [JBoss JIRA] Commented: (ISPN-933) Centralize all usages of System.identityHashCode()

Galder Zamarreño (JIRA) jira-events at lists.jboss.org
Wed Feb 16 05:21:13 EST 2011


    [ https://issues.jboss.org/browse/ISPN-933?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582567#comment-12582567 ] 

Galder Zamarreño commented on ISPN-933:
---------------------------------------

https://github.com/infinispan/infinispan/pull/171

> Centralize all usages of System.identityHashCode()
> --------------------------------------------------
>
>                 Key: ISPN-933
>                 URL: https://issues.jboss.org/browse/ISPN-933
>             Project: Infinispan
>          Issue Type: Task
>            Reporter: Galder Zamarreño
>            Assignee: Galder Zamarreño
>            Priority: Minor
>             Fix For: 4.2.1.CR2, 5.0.0.ALPHA3
>
>
> Substitute all uses of System.identityHashCode() behind a method like this in Util:
>    public static String hexIdHashCode(Object o) {
>       return Integer.toHexString(System.identityHashCode(o));
>    }
> The hexadecimal version occupies less space and does the same job.
> Also, stop/start marshaller should not print the id hash code, it's too verbose and it's only needed when debugging a particular problem which has not been present in a while.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the infinispan-issues mailing list