Skip to content

Commit 6172019

Browse files
committed
Always use source declarations (i.e, raw types) when naming types in tests
1 parent e8acfec commit 6172019

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
@@ -293,7 +293,7 @@ string getShortNameIfPossible(Type t) {
293293
if t instanceof RefType
294294
then
295295
exists(RefType replaced, string nestedName |
296-
replaced = replaceTypeVariable(t) and
296+
replaced = replaceTypeVariable(t).getSourceDeclaration() and
297297
nestedName = replaced.nestedName().replaceAll("$", ".")
298298
|
299299
if isImportable(getRootSourceDeclaration(t))

0 commit comments

Comments
 (0)