Skip to content

Commit ce63549

Browse files
authored
Apply review comments
1 parent db39c0b commit ce63549

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,6 @@ class DoubleLiteral extends Literal, @doubleliteral {
713713
override string getAPrimaryQlClass() { result = "DoubleLiteral" }
714714
}
715715

716-
// Implementation taken from @p0 at https://github.com/github/codeql/issues/4145
717716
bindingset[s]
718717
private int fromHex(string s) {
719718
exists(string digits | s.toUpperCase() = digits |
@@ -744,7 +743,7 @@ class CharacterLiteral extends Literal, @characterliteral {
744743
* the character to an `int`.
745744
*/
746745
int getCodePointValue() {
747-
if this.getLiteral().matches("'\\u%'")
746+
if this.getLiteral().matches("'\\u____'")
748747
then result = fromHex(this.getLiteral().substring(3, 7))
749748
else result.toUnicode() = this.getValue()
750749
}

0 commit comments

Comments
 (0)