We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe51151 commit 301a907Copy full SHA for 301a907
java/ql/lib/semmle/code/java/Expr.qll
@@ -731,7 +731,7 @@ class CharacterLiteral extends Literal, @characterliteral {
731
* this literal. The result is the same as if the Java code had cast
732
* the character to an `int`.
733
*/
734
- int getCodePointValue() { result = any(int i | i.toUnicode() = getValue()) }
+ int getCodePointValue() { result.toUnicode() = this.getValue() }
735
}
736
737
/**
0 commit comments