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

Return value of Objects.requireNonNull call can be used

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b69
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: