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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.11.0-M6
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: