[jboss-jira] [JBoss JIRA] (ELY-737) Coverity static analysis: Operands don't affect result in Elytron
Josef Cacek (JIRA)
issues at jboss.org
Fri Nov 11 04:48:00 EST 2016
Josef Cacek created ELY-737:
-------------------------------
Summary: 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: Darran Lofthouse
Priority: Minor
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