Skip to content

Commit 0eb5ce7

Browse files
committed
Fix compile error on JDK 18 and later
Resolves #1739.
1 parent 80838a5 commit 0eb5ce7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/junit/runner/Result.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public SerializedForm(Result result) {
188188
}
189189

190190
@SuppressWarnings("unchecked")
191-
private SerializedForm(ObjectInputStream.GetField fields) throws IOException {
191+
private SerializedForm(ObjectInputStream.GetField fields) throws IOException, ClassNotFoundException {
192192
fCount = (AtomicInteger) fields.get("fCount", null);
193193
fIgnoreCount = (AtomicInteger) fields.get("fIgnoreCount", null);
194194
assumptionFailureCount = (AtomicInteger) fields.get("assumptionFailureCount", null);

0 commit comments

Comments
 (0)