mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Allow @param tags to apply to record parameters
This commit is contained in:
@@ -120,5 +120,18 @@ public class Test<V> {
|
||||
*/
|
||||
interface GenericInterface<T> {}
|
||||
|
||||
/**
|
||||
* @param i exists
|
||||
* @param k does not
|
||||
*/
|
||||
static record SomeRecord(int i, int j) {}
|
||||
|
||||
/**
|
||||
* @param <T> exists
|
||||
* @param i exists
|
||||
* @param k does not
|
||||
*/
|
||||
static record GenericRecord<T>(int i, int j) {}
|
||||
|
||||
// Diagnostic Matches: Incomplete inheritance relation for type java.lang.Object and supertype none
|
||||
}
|
||||
|
||||
1
java/ql/test/query-tests/SpuriousJavadocParam/options
Normal file
1
java/ql/test/query-tests/SpuriousJavadocParam/options
Normal file
@@ -0,0 +1 @@
|
||||
//semmle-extractor-options: --javac-args -source 16 -target 16
|
||||
@@ -12,3 +12,5 @@
|
||||
| Test.java:112:6:112:12 | @param | @param tag "<X>" does not match any actual type parameter of type "GenericClass". |
|
||||
| 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". |
|
||||
|
||||
Reference in New Issue
Block a user