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 6f1124d commit 6f7b7c9Copy full SHA for 6f7b7c9
java/ql/src/utils/stub-generator/Stubs.qll
@@ -432,7 +432,13 @@ private string stubAnnotationValue(Expr value) {
432
result = stubAnnotationSimpleValue(value)
433
or
434
value instanceof ArrayInit and
435
- result = "{" + concat(stubAnnotationSimpleValue(value.(ArrayInit).getAnInit()), ",") + "}"
+ result =
436
+ "{" +
437
+ concat(int i, Expr arrayElement |
438
+ arrayElement = value.(ArrayInit).getInit(i)
439
+ |
440
+ stubAnnotationSimpleValue(arrayElement), "," order by i
441
+ ) + "}"
442
}
443
444
bindingset[s]
0 commit comments