Uploaded image for project: 'Maven Compiler Plugin'
  1. Maven Compiler Plugin
  2. MCOMPILER-384

Remove null checks in conjunction with instanceof

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 3.9.0
    • None

    Description

      There are a few places where we check for nullity prior to checking type with instanceof.

      These null checks are redundant as per the Java language specification https://docs.oracle.com/javase/specs/jls/se11/html/jls-15.html#jls-15.20.2

      Attachments

        Activity

          People

            olamy Olivier Lamy
            rhowe Russell Howe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: