Files
codeql/java/ql/test/query-tests/Javadoc/ImpossibleJavadocThrows.java
2018-08-30 10:48:05 +01:00

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(){
}
}