Skip to content

Commit 5529aa6

Browse files
committed
t String.format instead of string concat
1 parent 3a358b1 commit 5529aa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

approvaltests-util-tests/src/test/java/com/spun/util/DateDifferenceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public void testFebruaryAndDaylightSavingsTime()
151151
Timestamp b = DateUtils.parse("2010/03/0" + i);
152152
DateDifference dif = new DateDifference(a, b);
153153
String standardTimeText = dif.getStandardTimeText(2, "days", "seconds", null, null);
154-
buffer.append(f.format(a) + ", " + f.format(b) + " => " + standardTimeText + "\n");
154+
buffer.append(String.format("%s, %s => %s\n", f.format(a), f.format(b), standardTimeText));
155155
}
156156
Approvals.verify(buffer.toString());
157157
}

0 commit comments

Comments
 (0)