Skip to content

Commit 38533a6

Browse files
committed
Use Throwable instead of NoClassDefFoundError
1 parent 223a8ab commit 38533a6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

validator-http-plugin/src/main/java/io/avaje/validation/http/HttpValidatorProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ private static boolean avajeHttpOnClasspath() {
2222
.orElseGet(() -> {
2323
try {
2424
return Validator.class != null;
25-
} catch (NoClassDefFoundError e) {
25+
} catch (Throwable e) {
2626
return false;
2727
}
2828
});

validator-inject-plugin/src/main/java/io/avaje/validation/inject/spi/DefaultValidatorProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ private static boolean aspectsOnClasspath() {
3030
.orElseGet(() -> {
3131
try {
3232
return Aspect.class != null;
33-
} catch (NoClassDefFoundError e) {
33+
} catch (Throwable e) {
3434
return false;
3535
}
3636
});

0 commit comments

Comments
 (0)