Skip to content

Commit

Permalink
Fix compile error on JDK 18 and later
Browse files Browse the repository at this point in the history
Resolves #1739.
  • Loading branch information
marcphilipp committed May 15, 2022
1 parent 80838a5 commit 0eb5ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/junit/runner/Result.java
Expand Up @@ -188,7 +188,7 @@ public SerializedForm(Result result) {
}

@SuppressWarnings("unchecked")
private SerializedForm(ObjectInputStream.GetField fields) throws IOException {
private SerializedForm(ObjectInputStream.GetField fields) throws IOException, ClassNotFoundException {
fCount = (AtomicInteger) fields.get("fCount", null);
fIgnoreCount = (AtomicInteger) fields.get("fIgnoreCount", null);
assumptionFailureCount = (AtomicInteger) fields.get("assumptionFailureCount", null);
Expand Down

0 comments on commit 0eb5ce7

Please sign in to comment.