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

StyledString.equals must specify behavior for null input parameter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 1.2.0
    • docs
    • generic
    • solaris_2.5

      By convention, a null input parameter will result in a method throwing a
      NullPointerException. StyledString.equals(null) returns false and does not
      throw an exception. This behavior is acceptable, but must be documented since
      is does not follow the default convention. Suggest add to the javadoc a
      sentence such as:

      "Returns false for all other inputs."

            asommere Alan Sommerer (Inactive)
            sflemingsunw Steve Fleming (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: