Use StringBuilder's append rather than string concatenation.

This commit is contained in:
Karsten Loesing 2018-08-21 12:09:45 +02:00
parent 79994eb3e1
commit 21277083a8

View File

@ -180,8 +180,8 @@ public class Main {
DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
for (long conflictingDate : conflictingDates) {
sb.append("\n "
+ dateFormat.format(conflictingDate * ONE_DAY_IN_MILLIS));
sb.append("\n ")
.append(dateFormat.format(conflictingDate * ONE_DAY_IN_MILLIS));
}
log.warn(sb.toString());
return;