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

Add shared two argument static equals method to the platform

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 7
    • 5.0, 7
    • core-libs
    • None
    • b75
    • generic, sparc
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: