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

Return value of Objects.requireNonNull call can be used

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • None
    • core-libs
    • b69
    • generic
    • generic

        Objects.requireNonNull(obj) call is used as expression statement in many places and then "obj" is fetched again. Instead return value of Objects.requireNonNull could be used directly.

              sundar Sundararajan Athijegannathan
              sundar Sundararajan Athijegannathan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: