mirror of
https://github.com/github/codeql.git
synced 2025-12-18 18:10:39 +01:00
34 lines
479 B
Java
34 lines
479 B
Java
import java.math.*;
|
|
|
|
class MyExn extends Throwable {}
|
|
|
|
public class Test2 {
|
|
void f() throws Throwable {}
|
|
|
|
void g(boolean b) throws Throwable {
|
|
while (b) {
|
|
if (b) {
|
|
} else {
|
|
try {
|
|
f();
|
|
} catch (MyExn e) {}
|
|
;
|
|
}
|
|
}
|
|
}
|
|
|
|
void t(int x) {
|
|
if (x < 0) {
|
|
return;
|
|
}
|
|
while(x >= 0) {
|
|
if (x > 10) {
|
|
try {
|
|
BigInteger n = new BigInteger( "wrong" );
|
|
} catch ( NumberFormatException e ) { // unchecked exception
|
|
}
|
|
}
|
|
x--;
|
|
}
|
|
}
|
|
} |