Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4499a1 commit 1ece12eCopy full SHA for 1ece12e
1 file changed
java/ql/src/utils/stub-generator/Stubs.qll
@@ -400,8 +400,15 @@ private string stubMember(Member m) {
400
401
private string stubAnnotation(Annotation a) {
402
if exists(a.getAValue())
403
- then result = a.toString() + "(" + concat(stubAnnotationValue(a.getAValue()), ",") + ")"
404
- else result = a.toString()
+ then
+ result =
405
+ a.getType().getName() + "(" +
406
+ concat(string name, Expr value |
407
+ value = a.getValue(name)
408
+ |
409
+ name + "=" + stubAnnotationValue(value), ","
410
+ ) + ")"
411
+ else result = a.getType().getName()
412
}
413
414
private string stubAnnotationSimpleValue(Expr value) {
0 commit comments