Skip to content

Commit

Permalink
Merge pull request #47 from jasondlee/main
Browse files Browse the repository at this point in the history
Fix isAssignableFrom() usage
  • Loading branch information
jamezp authored Nov 21, 2024
2 parents e85eabf + 093f634 commit 9c707d6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void createContainer(@Observes(precedence = 500) BeforeClass beforeClass)
final var overrideClass = System.getProperty("org.arquillian.testcontainers.docker.required.exception");
if (overrideClass != null && !overrideClass.isBlank()) {
Class<?> override = Class.forName(overrideClass);
if (override.isAssignableFrom(Throwable.class)) {
if (Throwable.class.isAssignableFrom(override)) {
throwable = (Class<? extends Throwable>) override;
}
}
Expand Down

0 comments on commit 9c707d6

Please sign in to comment.