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
@@ -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