You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
333 B
20 lines
333 B
10 years ago
|
package pkg;
|
||
|
|
||
|
import java.lang.Override;
|
||
|
import java.lang.Runnable;
|
||
|
|
||
|
public class TestThrowException {
|
||
|
Runnable r;
|
||
|
public TestThrowException(int a) {
|
||
|
if (a > 0) {
|
||
|
throw new IllegalArgumentException("xxx");
|
||
|
}
|
||
|
r = new Runnable() {
|
||
|
@Override
|
||
|
public void run() {
|
||
|
int a = 5;
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
}
|