Files
codeql/java/ql/test/query-tests/Javadoc/ImpossibleJavadocThrows.java
2022-10-04 10:59:39 +02: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(){
}
}