File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
java/ql/lib/semmle/code/java Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -713,7 +713,6 @@ class DoubleLiteral extends Literal, @doubleliteral {
713
713
override string getAPrimaryQlClass ( ) { result = "DoubleLiteral" }
714
714
}
715
715
716
- // Implementation taken from @p0 at https://github.com/github/codeql/issues/4145
717
716
bindingset [ s]
718
717
private int fromHex ( string s ) {
719
718
exists ( string digits | s .toUpperCase ( ) = digits |
@@ -744,7 +743,7 @@ class CharacterLiteral extends Literal, @characterliteral {
744
743
* the character to an `int`.
745
744
*/
746
745
int getCodePointValue ( ) {
747
- if this .getLiteral ( ) .matches ( "'\\u% '" )
746
+ if this .getLiteral ( ) .matches ( "'\\u____ '" )
748
747
then result = fromHex ( this .getLiteral ( ) .substring ( 3 , 7 ) )
749
748
else result .toUnicode ( ) = this .getValue ( )
750
749
}
You can’t perform that action at this time.
0 commit comments