From c653a71c1e6d1c99e175eb283567fb9d167891f0 Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Sat, 14 Mar 2009 12:22:50 +0000 Subject: [PATCH] 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 --- .../org/apache/commons/lang/time/DurationFormatUtilsTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/org/apache/commons/lang/time/DurationFormatUtilsTest.java b/src/test/org/apache/commons/lang/time/DurationFormatUtilsTest.java index 55336f4d0..ddb1a022c 100644 --- a/src/test/org/apache/commons/lang/time/DurationFormatUtilsTest.java +++ b/src/test/org/apache/commons/lang/time/DurationFormatUtilsTest.java @@ -577,7 +577,7 @@ public class DurationFormatUtilsTest extends TestCase { private void assertArrayEquals(DurationFormatUtils.Token[] obj1, DurationFormatUtils.Token[] obj2) { assertEquals("Arrays are unequal length. ", obj1.length, obj2.length); 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])); } }