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

Rule S4973 shouldn't report an issue if "==" is used to compare Boolean constants

    XMLWordPrintable

    Details

    • Type: False-Positive
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.10
    • Component/s: Rules
    • Labels:
      None

      Description

      We can stop reporting the issue in case Boolean is compared using '==' with constants (`Boolean.TRUE`, `Boolean.FALSE`) or null.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              margarita.nedzelska Margarita Nedzelska
              Reporter:
              margarita.nedzelska Margarita Nedzelska
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: