Skip to content

Commit

Permalink
Minor warnings removal
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jan 10, 2025
1 parent 0eb866b commit 48d2f57
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ private ExpectedPassingTestCasePredicate findzExpectedPassingTestCasePredicate(
if (ExpectedPassingTestCasePredicate.class.equals(predicate)) {
return null;
} else {
return predicate.newInstance();
try {
return predicate.getDeclaredConstructor().newInstance();
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}

Expand Down

0 comments on commit 48d2f57

Please sign in to comment.