[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [metrics-web/master] Use StringBuilder's append rather than string concatenation.



commit 21277083a87fe409fb9bcdb4e676984f9856fcd1
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Tue Aug 21 12:09:45 2018 +0200

    Use StringBuilder's append rather than string concatenation.
---
 src/main/java/org/torproject/metrics/stats/connbidirect/Main.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/torproject/metrics/stats/connbidirect/Main.java b/src/main/java/org/torproject/metrics/stats/connbidirect/Main.java
index 426a7cf..a069d84 100644
--- a/src/main/java/org/torproject/metrics/stats/connbidirect/Main.java
+++ b/src/main/java/org/torproject/metrics/stats/connbidirect/Main.java
@@ -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;



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits