Skip to content

Commit

Permalink
Add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
dbartol committed Apr 9, 2024
1 parent 2336e14 commit b9cfeaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions java/ql/test/query-tests/SpuriousJavadocParam/Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ static record SomeRecord(int i, int j) {}

/**
* @param <T> exists
* @param <U> does not
* @param i exists
* @param k does not
*/
Expand Down
3 changes: 2 additions & 1 deletion java/ql/test/query-tests/SpuriousJavadocParam/test.expected
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@
| Test.java:118:6:118:12 | @param | @param tag "T" does not match any actual type parameter of type "GenericInterface". |
| Test.java:119:6:119:12 | @param | @param tag "<X>" does not match any actual type parameter of type "GenericInterface". |
| Test.java:125:6:125:12 | @param | @param tag "k" does not match any actual type parameter or record parameter of record "SomeRecord". |
| Test.java:132:6:132:12 | @param | @param tag "k" does not match any actual type parameter or record parameter of record "GenericRecord". |
| Test.java:131:6:131:12 | @param | @param tag "<U>" does not match any actual type parameter or record parameter of record "GenericRecord". |
| Test.java:133:6:133:12 | @param | @param tag "k" does not match any actual type parameter or record parameter of record "GenericRecord". |

0 comments on commit b9cfeaf

Please sign in to comment.