mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-06 01:09:02 +00:00
Polish SessionAutoConfiguration#addCandidateIfAvailable
See gh-27808
This commit is contained in:
+1
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user