mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
34 lines
459 B
Java
34 lines
459 B
Java
import java.lang.InterruptedException;
|
|
import java.lang.Exception;
|
|
import java.lang.RuntimeException;
|
|
|
|
class ImpossibleJavadocThrows {
|
|
|
|
/**
|
|
*
|
|
* @throws InterruptedException
|
|
*/
|
|
public void bad1() {
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @exception Exception
|
|
*/
|
|
public void bad2() {
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @throws InterruptedException
|
|
*/
|
|
public void goodDeclared() throws Exception{
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @exception RuntimeException
|
|
*/
|
|
public void goodUnchecked(){
|
|
}
|
|
} |