Skip to content

Commit 301a907

Browse files
authored
Update java/ql/lib/semmle/code/java/Expr.qll
1 parent fe51151 commit 301a907

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ class CharacterLiteral extends Literal, @characterliteral {
731731
* this literal. The result is the same as if the Java code had cast
732732
* the character to an `int`.
733733
*/
734-
int getCodePointValue() { result = any(int i | i.toUnicode() = getValue()) }
734+
int getCodePointValue() { result.toUnicode() = this.getValue() }
735735
}
736736

737737
/**

0 commit comments

Comments
 (0)