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

Use Optional.isEmpty instead of !Optional.isPresent in java.base

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 20
    • None
    • core-libs
    • b10

      Optional.isEmpty() was introduced to avoid negation in long option chains.
      Let's apply this new handy method to JDK code.

            aturbanov Andrey Turbanov
            aturbanov Andrey Turbanov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: