Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-8825

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • Discovery Impl 1.2.14
    • 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?resolved=false&rules=squid%3AS4973

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

      Are pull requests for fixing these welcome?

      Attachments

        Activity

          People

            rombert Robert Munteanu
            HarisAdzemovic Haris Adzemovic
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: