Skip to content

Commit 3f3c33b

Browse files
committed
更新日志格式:Years:{}
1 parent 0392495 commit 3f3c33b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core-java-modules/core-java-8-datetime/src/test/java/com/ossez/dateapi/JavaPeriodUnitTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public void whenTestPeriod_thenOk() {
4646

4747
Period period = Period.between(startDate, endDate);
4848

49-
logger.info(String.format("Years:%d months:%d days:%d", period.getYears(), period.getMonths(), period.getDays()));
49+
logger.info("Years:{} months:{} days:{}", period.getYears(), period.getMonths(), period.getDays());
5050

5151
assertFalse(period.isNegative());
5252
assertEquals(56, period.plusDays(50)

0 commit comments

Comments
 (0)