Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db39c0b commit ce63549Copy full SHA for ce63549
1 file changed
java/ql/lib/semmle/code/java/Expr.qll
@@ -713,7 +713,6 @@ class DoubleLiteral extends Literal, @doubleliteral {
713
override string getAPrimaryQlClass() { result = "DoubleLiteral" }
714
}
715
716
-// Implementation taken from @p0 at https://github.com/github/codeql/issues/4145
717
bindingset[s]
718
private int fromHex(string s) {
719
exists(string digits | s.toUpperCase() = digits |
@@ -744,7 +743,7 @@ class CharacterLiteral extends Literal, @characterliteral {
744
743
* the character to an `int`.
745
*/
746
int getCodePointValue() {
747
- if this.getLiteral().matches("'\\u%'")
+ if this.getLiteral().matches("'\\u____'")
748
then result = fromHex(this.getLiteral().substring(3, 7))
749
else result.toUnicode() = this.getValue()
750
0 commit comments