mirror of
https://github.com/github/codeql.git
synced 2026-05-02 20:25:13 +02:00
[Java] Add CharacterLiteral to CompileTimeConstantExpr.getStringValue
This commit is contained in:
@@ -168,6 +168,8 @@ class CompileTimeConstantExpr extends Expr {
|
||||
string getStringValue() {
|
||||
result = this.(StringLiteral).getValue()
|
||||
or
|
||||
result = this.(CharacterLiteral).getValue()
|
||||
or
|
||||
result =
|
||||
this.(AddExpr).getLeftOperand().(CompileTimeConstantExpr).getStringValue() +
|
||||
this.(AddExpr).getRightOperand().(CompileTimeConstantExpr).getStringValue()
|
||||
|
||||
Reference in New Issue
Block a user