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

S2447 : FP on methods annotated with @CheckForNull

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.10
    • Fix Version/s: 3.12
    • Component/s: Rules
    • Labels:
      None

      Description

      Methods returning Boolean and annotated with @CheckForNull should not have an issue of S2447 ("Null should not be returned from a "Boolean" method") raised on them as the annotation clearly show the intent of the developer.

        Attachments

          Activity

            People

            • Assignee:
              nicolas.peru Nicolas Peru
              Reporter:
              nicolas.peru Nicolas Peru
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: