Java: fix javac errors in test code

This commit is contained in:
yo-h
2021-02-09 09:16:57 -05:00
parent 8a2e063af7
commit e194411cfa
51 changed files with 149 additions and 142 deletions

View File

@@ -7,7 +7,7 @@ public class A {
new Object();
} catch(Exception e) {
if (e == null) { // Useless check
throw new Exception();
throw new Error();
}
}
}
@@ -16,7 +16,7 @@ public class A {
if (o instanceof A) {
A a = (A)o;
if (a != null) { // Useless check
throw new Exception();
throw new Error();
}
}
}