mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Java: Test generator: use getComponentType
This commit is contained in:
@@ -521,7 +521,7 @@ predicate isImportable(Type t) {
|
||||
*/
|
||||
string getShortNameIfPossible(Type t) {
|
||||
if t instanceof Array
|
||||
then result = getShortNameIfPossible(t.(Array).getElementType()) + "[]"
|
||||
then result = getShortNameIfPossible(t.(Array).getComponentType()) + "[]"
|
||||
else (
|
||||
getRootSourceDeclaration(t) = any(TestCase tc).getADesiredImport() and
|
||||
if t instanceof RefType
|
||||
|
||||
Reference in New Issue
Block a user