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 97faeb0 commit 04e04b3Copy full SHA for 04e04b3
java/ql/src/utils/FlowTestCaseSupportMethods.qll
@@ -383,12 +383,12 @@ private class ArrayGenMethod extends GenMethod {
383
ArrayGenMethod() { this = type.getName() + "genmethod" }
384
385
override predicate appliesTo(Type t, Content c) {
386
- replaceTypeVariable(t.(Array).getElementType()) = type.getElementType() and
+ replaceTypeVariable(t.(Array).getComponentType()) = type.getComponentType() and
387
c instanceof ArrayContent
388
}
389
390
bindingset[arg]
391
override string getCall(string arg) {
392
- result = "{" + getConvertExprIfNotObject(type.getElementType()) + arg + "}"
+ result = "new " + getShortNameIfPossible(type) + "{" + getConvertExprIfNotObject(type.getComponentType()) + arg + "}"
393
394
0 commit comments