mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
Java: Adjust ImpossibleJavadocThrows.ql
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
| ImpossibleJavadocThrows.java:9:5:9:12 | @throws | Javadoc for bad1 claims to throw InterruptedException but this is impossible. |
|
||||
| ImpossibleJavadocThrows.java:16:5:16:15 | @exception | Javadoc for bad2 claims to throw Exception but this is impossible. |
|
||||
| ImpossibleJavadocThrows.java:23:5:23:12 | @throws | Javadoc for bad3 claims to throw Runnable but this is impossible. |
|
||||
|
||||
@@ -18,6 +18,13 @@ class ImpossibleJavadocThrows {
|
||||
public void bad2() {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @throws Runnable
|
||||
*/
|
||||
public void bad3() {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @throws InterruptedException
|
||||
|
||||
Reference in New Issue
Block a user