You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "Haris Adzemovic (Jira)" <ji...@apache.org> on 2019/11/05 11:44:00 UTC
[jira] [Updated] (JSPWIKI-1120) Strings and Boxed types should be
compared using "equals()"
[ https://issues.apache.org/jira/browse/JSPWIKI-1120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Haris Adzemovic updated JSPWIKI-1120:
-------------------------------------
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]
was:
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]
Are pull requests for fixing these welcome?
> Strings and Boxed types should be compared using "equals()"
> -----------------------------------------------------------
>
> Key: JSPWIKI-1120
> URL: https://issues.apache.org/jira/browse/JSPWIKI-1120
> Project: JSPWiki
> Issue Type: Bug
> Reporter: Haris Adzemovic
> Priority: Minor
>
> 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]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)