Add missing index to array reference (Findbugs)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@753643 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d34bc6a603
commit
c653a71c1e
|
@ -577,7 +577,7 @@ public class DurationFormatUtilsTest extends TestCase {
|
||||||
private void assertArrayEquals(DurationFormatUtils.Token[] obj1, DurationFormatUtils.Token[] obj2) {
|
private void assertArrayEquals(DurationFormatUtils.Token[] obj1, DurationFormatUtils.Token[] obj2) {
|
||||||
assertEquals("Arrays are unequal length. ", obj1.length, obj2.length);
|
assertEquals("Arrays are unequal length. ", obj1.length, obj2.length);
|
||||||
for (int i = 0; i < obj1.length; i++) {
|
for (int i = 0; i < obj1.length; i++) {
|
||||||
assertTrue("Index " + i + " not equal, " + obj1[i] + " vs " + obj2, obj1[i].equals(obj2[i]));
|
assertTrue("Index " + i + " not equal, " + obj1[i] + " vs " + obj2[i], obj1[i].equals(obj2[i]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue