Polish SessionAutoConfiguration#addCandidateIfAvailable

See gh-27808
pull/27811/head
weixsun 3 years ago committed by Stephane Nicoll
parent a7de44a718
commit 149ed09230

@ -239,10 +239,7 @@ public class SessionAutoConfiguration {
private void addCandidateIfAvailable(List<Class<?>> candidates, String type) {
try {
Class<?> candidate = Class.forName(type, false, this.classLoader);
if (candidate != null) {
candidates.add(candidate);
}
candidates.add(Class.forName(type, false, this.classLoader));
}
catch (Throwable ex) {
// Ignore

Loading…
Cancel
Save