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
@@ -754,6 +754,7 @@ public class ExtendedBeanInfoTests {
|
||||
for (PropertyDescriptor pd : ebi.getPropertyDescriptors()) {
|
||||
if (pd.getName().equals("foo")) {
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
assertThat(found, is(true));
|
||||
|
||||
Reference in New Issue
Block a user