[jboss-jira] [JBoss JIRA] (ELY-737) Coverity static analysis: Operands don't affect result in Elytron
Ilia Vassilev (JIRA)
issues at jboss.org
Fri Nov 11 07:42:01 EST 2016
[ https://issues.jboss.org/browse/ELY-737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ilia Vassilev reassigned ELY-737:
---------------------------------
Assignee: Ilia Vassilev (was: Darran Lofthouse)
> Coverity static analysis: Operands don't affect result in Elytron
> -----------------------------------------------------------------
>
> Key: ELY-737
> URL: https://issues.jboss.org/browse/ELY-737
> Project: WildFly Elytron
> Issue Type: Bug
> Reporter: Josef Cacek
> Assignee: Ilia Vassilev
> Priority: Minor
> Labels: static_analysis
>
> Coverity static-analysis scan found unnecessary code in the {{DigestQuote.quoteNeeded()}} method on line 43 (currently).
> One part of the condition is {{ch >= 0}}, which is always true, because the {{ch}} parameter has {{char}} type.
> https://scan7.coverity.com/reports.htm#v16159/p11778/fileInstanceId=5760146&defectInstanceId=1541357&mergedDefectId=1375729
> *Suggested improvement*
> Remove the useless {{ch >= 0}} from the expression.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list