mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Add missing break statements to stop looping when result is known
Closes gh-22573
This commit is contained in:
committed by
Sam Brannen
parent
96cd4411e5
commit
a35adc6ea6
+1
@@ -151,6 +151,7 @@ public class StandardScriptFactory implements ScriptFactory, BeanClassLoaderAwar
|
||||
if (script instanceof Class ? !requestedIfc.isAssignableFrom((Class<?>) script) :
|
||||
!requestedIfc.isInstance(script)) {
|
||||
adaptationRequired = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (adaptationRequired) {
|
||||
|
||||
Reference in New Issue
Block a user