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
@@ -89,7 +89,7 @@ public class PathMatchingResourcePatternResolverTests {
|
||||
noCloverResources.add(resource);
|
||||
}
|
||||
}
|
||||
resources = noCloverResources.toArray(new Resource[noCloverResources.size()]);
|
||||
resources = noCloverResources.toArray(new Resource[0]);
|
||||
assertProtocolAndFilenames(resources, "file",
|
||||
StringUtils.concatenateStringArrays(CLASSES_IN_CORE_IO_SUPPORT, TEST_CLASSES_IN_CORE_IO_SUPPORT));
|
||||
}
|
||||
@@ -113,6 +113,7 @@ public class PathMatchingResourcePatternResolverTests {
|
||||
for (Resource resource : resources) {
|
||||
if (resource.getFilename().equals("aspectj_1_5_0.dtd")) {
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
assertTrue("Could not find aspectj_1_5_0.dtd in the root of the aspectjweaver jar", found);
|
||||
|
||||
Reference in New Issue
Block a user