Skip to content

Commit b9cfeaf

Browse files
author
Dave Bartolomeo
committed
Add test case
1 parent 2336e14 commit b9cfeaf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

java/ql/test/query-tests/SpuriousJavadocParam/Test.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ static record SomeRecord(int i, int j) {}
128128

129129
/**
130130
* @param <T> exists
131+
* @param <U> does not
131132
* @param i exists
132133
* @param k does not
133134
*/

java/ql/test/query-tests/SpuriousJavadocParam/test.expected

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@
1313
| Test.java:118:6:118:12 | @param | @param tag "T" does not match any actual type parameter of type "GenericInterface". |
1414
| Test.java:119:6:119:12 | @param | @param tag "<X>" does not match any actual type parameter of type "GenericInterface". |
1515
| Test.java:125:6:125:12 | @param | @param tag "k" does not match any actual type parameter or record parameter of record "SomeRecord". |
16-
| Test.java:132:6:132:12 | @param | @param tag "k" does not match any actual type parameter or record parameter of record "GenericRecord". |
16+
| Test.java:131:6:131:12 | @param | @param tag "<U>" does not match any actual type parameter or record parameter of record "GenericRecord". |
17+
| Test.java:133:6:133:12 | @param | @param tag "k" does not match any actual type parameter or record parameter of record "GenericRecord". |

0 commit comments

Comments
 (0)