Skip to content

Commit f7099f4

Browse files
Java: Test generator: use getComponentType
1 parent d900fca commit f7099f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/src/utils/GenerateFlowTestCase.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ predicate isImportable(Type t) {
521521
*/
522522
string getShortNameIfPossible(Type t) {
523523
if t instanceof Array
524-
then result = getShortNameIfPossible(t.(Array).getElementType()) + "[]"
524+
then result = getShortNameIfPossible(t.(Array).getComponentType()) + "[]"
525525
else (
526526
getRootSourceDeclaration(t) = any(TestCase tc).getADesiredImport() and
527527
if t instanceof RefType

0 commit comments

Comments
 (0)