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

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

    XMLWordPrintable

Details

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

    Description

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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: