Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-933

Centralize all usages of System.identityHashCode()

    Details

    • Type: Task
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 4.2.1.CR2, 5.0.0.ALPHA3
    • Component/s: None
    • Labels:
      None
    • Estimated Difficulty:
      Low

      Description

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                galder.zamarreno Galder ZamarreƱo
                Reporter:
                galder.zamarreno Galder ZamarreƱo
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: