Uploaded image for project: 'JSPWiki'
  1. JSPWiki
  2. JSPWIKI-1120

Strings and Boxed types should be compared using "equals()"

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.11.0-M6
    • Component/s: None
    • Labels:
      None

      Description

      There are a number of Sonarqube violations relating to comparisons of Boxed types and Strings using the "==" operator rather than ".equals()".

      Sonarcloud analysis: https://sonarcloud.io/organizations/apache/issues?languages=java&open=AWyr6XyY5ULuzyOxXLGi&resolved=false&rules=squid%3AS4973&types=BUG

      Violated rule: https://rules.sonarsource.com/java/RSPEC-4973

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              HarisAdzemovic Haris Adzemovic
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: