mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Use empty string as default value for string annotation values
This commit is contained in:
@@ -418,7 +418,9 @@ private string stubAnnotationSimpleValue(Expr value) {
|
||||
value instanceof Literal or
|
||||
value instanceof CompileTimeConstantExpr
|
||||
) and
|
||||
result = stubDefaultValue(value.getType())
|
||||
if value instanceof StringLiteral
|
||||
then result = "\"\""
|
||||
else result = stubDefaultValue(value.getType())
|
||||
or
|
||||
// We can't use stubAnnotation here because it causes a non-monotonic recursion.
|
||||
// Handling the most basic case of a nested annotation for now.
|
||||
|
||||
Reference in New Issue
Block a user