]
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=57601...
*Suggested improvement*
Remove the useless {{ch >= 0}} from the expression.