We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e75ed5a commit 3c6db09Copy full SHA for 3c6db09
java/ql/lib/semmle/code/java/Expr.qll
@@ -180,7 +180,7 @@ class CompileTimeConstantExpr extends Expr {
180
/**
181
* Gets the string value of this expression, where possible.
182
*/
183
- pragma[nomagic]
+ cached
184
string getStringValue() {
185
result = this.(StringLiteral).getValue()
186
or
@@ -205,7 +205,7 @@ class CompileTimeConstantExpr extends Expr {
205
206
* Gets the boolean value of this expression, where possible.
207
208
209
boolean getBooleanValue() {
210
// Literal value.
211
result = this.(BooleanLiteral).getBooleanValue()
0 commit comments