We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a3ed6b commit 66e6f4dCopy full SHA for 66e6f4d
java/ql/src/utils/stub-generator/Stubs.qll
@@ -418,7 +418,9 @@ private string stubAnnotationSimpleValue(Expr value) {
418
value instanceof Literal or
419
value instanceof CompileTimeConstantExpr
420
) and
421
- result = stubDefaultValue(value.getType())
+ if value instanceof StringLiteral
422
+ then result = "\"\""
423
+ else result = stubDefaultValue(value.getType())
424
or
425
// We can't use stubAnnotation here because it causes a non-monotonic recursion.
426
// Handling the most basic case of a nested annotation for now.
0 commit comments