Merge pull request #27808 from weixsun

* pr/27808:
  Polish SessionAutoConfiguration#addCandidateIfAvailable

Closes gh-27808
pull/27811/head
Stephane Nicoll 3 years ago
commit fd36941ad3

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

Loading…
Cancel
Save