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

Use Optional.isEmpty instead of !Optional.isPresent in jdk.jlink

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 18
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b17

      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

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

                Dates

                Created:
                Updated:
                Resolved: