Add missing break statements to stop looping when result is known

Closes gh-22573
This commit is contained in:
Сергей Цыпанов
2019-03-12 14:15:59 +02:00
committed by Sam Brannen
parent 96cd4411e5
commit a35adc6ea6
3 changed files with 4 additions and 1 deletions

View File

@@ -754,6 +754,7 @@ public class ExtendedBeanInfoTests {
for (PropertyDescriptor pd : ebi.getPropertyDescriptors()) {
if (pd.getName().equals("foo")) {
found = true;
break;
}
}
assertThat(found, is(true));