[jboss-jira] [JBoss JIRA] (ELY-737) Coverity static analysis: Operands don't affect result in Elytron

Ilia Vassilev (JIRA) issues at jboss.org
Fri Feb 17 13:42:00 EST 2017


     [ https://issues.jboss.org/browse/ELY-737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ilia Vassilev updated ELY-737:
------------------------------
    Fix Version/s: 1.1.0.Beta15


> 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
>             Fix For: 1.1.0.Beta15
>
>
> 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