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

Add value-type notice to Optional* classes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 8
    • core-libs
    • b120
    • generic
    • generic
    • Verified

        Per EG discussion a notice is added to the Optional* classes to provide warning against using identity semantics on these objects

        Additionally as pointed out by bitterfox, there is an incorrect method name in OptionalInt OptionalLong and OptionalDouble. The class documentation for each refers to "get()" whereas the actual name is getXXX where XXX is the box type name.

              mduigou Mike Duigou
              mduigou Mike Duigou
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: