Remove unnecessary catch.
@@ -32,8 +32,7 @@ import javaemul.internal.EmulatedCharset;
public class Main {
static byte[] AEBC = {(byte) 0xC3, (byte) 0x84, (byte) 66, (byte) 67};
- public static void main(String... args) {
- try {
+ public static void main(String... args) throws Exception {
testMath();
testPrimitives();
testStringBuilder();
@@ -43,9 +42,6 @@ public class Main {
testArrayCopy();
testHashCode();
testUtil();
- } catch (Throwable e) {
- throw new RuntimeException(e);
- }
}
private static void testMath() {
@@ -54,7 +50,7 @@ public class Main {
assertEquals(s, new MathContext(5, RoundingMode.HALF_UP).toString());
}
- private static void testPrimitives() throws Throwable {
+ private static void testPrimitives() throws Exception {
testBoolean();
testInt();
testLong();
