File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
spring-expression/src/main/java/org/springframework/expression/spel/support Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -120,9 +120,10 @@ public Class<?> findType(String typeName) throws EvaluationException {
120
120
return cachedType ;
121
121
}
122
122
Class <?> loadedType = loadType (typeName );
123
- if (loadedType != null &&
124
- !(this .classLoader instanceof SmartClassLoader scl && scl .isClassReloadable (loadedType ))) {
125
- this .typeCache .put (typeName , loadedType );
123
+ if (loadedType != null ) {
124
+ if (!(this .classLoader instanceof SmartClassLoader scl && scl .isClassReloadable (loadedType ))) {
125
+ this .typeCache .put (typeName , loadedType );
126
+ }
126
127
return loadedType ;
127
128
}
128
129
throw new SpelEvaluationException (SpelMessage .TYPE_NOT_FOUND , typeName );
You can’t perform that action at this time.
0 commit comments