Update java/ql/lib/semmle/code/java/Expr.qll

This commit is contained in:
Anders Schack-Mulligen
2021-11-01 09:36:09 +01:00
committed by GitHub
parent fe5115169f
commit 301a907596

View File

@@ -731,7 +731,7 @@ class CharacterLiteral extends Literal, @characterliteral {
* this literal. The result is the same as if the Java code had cast
* the character to an `int`.
*/
int getCodePointValue() { result = any(int i | i.toUnicode() = getValue()) }
int getCodePointValue() { result.toUnicode() = this.getValue() }
}
/**