Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6797535

Add shared two argument static equals method to the platform

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 5.0, 7
    • Fix Version/s: 7
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b75
    • CPU:
      generic, sparc
    • OS:
      generic, solaris_9

      Description

      A common programming need is for a static two argument equals method that does that right thing for nulls; that is, if both arguments are null it returns true, if one argument is null it returns false, and if both arguments are nonnull, it calls a.equals(b).

      This idiom is common enough that the platform should have a method to provide this functionality.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              darcy Joe Darcy
              Reporter:
              darcy Joe Darcy
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: