mirror of
https://github.com/apache/poi.git
synced 2025-03-06 17:09:08 +00:00
[github-351] make test loop more efficient
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902752 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
30b20e3967
commit
186ad50d18
@ -254,8 +254,8 @@ public final class TestStreamComplex extends StreamTest {
|
||||
|
||||
// One of which is Text
|
||||
boolean hasText = false;
|
||||
for(int i=0; i<cs.getChunks().length; i++) {
|
||||
if(cs.getChunks()[i].getName().equals("Text")) {
|
||||
for(int i = 0; !hasText && i < cs.getChunks().length; i++) {
|
||||
if (cs.getChunks()[i].getName().equals("Text")) {
|
||||
hasText = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user