Uploaded image for project: 'SonarJava'
  1. SonarJava
  2. SONARJAVA-3710

Include Eclipse’s NonNullByDefault annotation on nonNullFields check

    Details

    • Type: False Negative
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.14
    • Component/s: Rules

      Description

      We only support partially Eclipse’s NonNullByDefault annotation when used with DefaultLocation RETURN_TYPE or PARAMETER.
      It makes sense to add the support for FIELD to improve the support of the annotation

      @org.eclipse.jdt.annotation.NonNullByDefault(DefaultLocation.FIELD)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                quentin.jaquier Quentin Jaquier
                Reporter:
                quentin.jaquier Quentin Jaquier
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: