Skip to content

Commit

Permalink
Suppress NoClassDefFoundError on AbstractGatewayDiscoverer
Browse files Browse the repository at this point in the history
  • Loading branch information
spencergibb committed Dec 20, 2023
1 parent 70b454e commit 88662b6
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,16 @@ public <T extends Supplier<Collection<Method>>, R> void doDiscover(Class<T> supp

List<Method> methods = new ArrayList<>();
for (Supplier<Collection<Method>> supplier : suppliers) {
methods.addAll(supplier.get());
try {
methods.addAll(supplier.get());
}
catch (NoClassDefFoundError e) {
if (log.isDebugEnabled()) {
log.debug(LogMessage.format("NoClassDefFoundError discovering supplier %s for type %s", supplierClass, returnType));
} else if (log.isTraceEnabled()) {
log.debug(LogMessage.format("NoClassDefFoundError discovering supplier %s for type %s", supplierClass, returnType), e);
}
}
}

for (Method method : methods) {
Expand Down

0 comments on commit 88662b6

Please sign in to comment.