Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2019-08-14 05:53:44 -0400
committerLars Vogel2019-08-14 05:53:44 -0400
commit6f2770c637a2f1a117f88bad5c7b1f0e747ba6cb (patch)
treed9d443554ad3a38ef60c9b470344164337b85d1c
parentc3223db78967165641e14f88088ad58823a1f141 (diff)
downloadrt.equinox.bundles-6f2770c637a2f1a117f88bad5c7b1f0e747ba6cb.tar.gz
rt.equinox.bundles-6f2770c637a2f1a117f88bad5c7b1f0e747ba6cb.tar.xz
rt.equinox.bundles-6f2770c637a2f1a117f88bad5c7b1f0e747ba6cb.zip
Use StringBuilder in org.eclipse.equinox.eventI20190814-1800
Change-Id: Idac1c833467c2b7b6f482e444ed96094c3aa6f0a Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--bundles/org.eclipse.equinox.event/src/org/eclipse/equinox/internal/event/LogTracker.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.event/src/org/eclipse/equinox/internal/event/LogTracker.java b/bundles/org.eclipse.equinox.event/src/org/eclipse/equinox/internal/event/LogTracker.java
index 48b18770..c4c28b66 100644
--- a/bundles/org.eclipse.equinox.event/src/org/eclipse/equinox/internal/event/LogTracker.java
+++ b/bundles/org.eclipse.equinox.event/src/org/eclipse/equinox/internal/event/LogTracker.java
@@ -150,7 +150,7 @@ public class LogTracker extends ServiceTracker<LogService, LogService> {
private String getDate(Date date) {
Calendar c = Calendar.getInstance();
c.setTime(date);
- StringBuffer sb = new StringBuffer();
+ StringBuilder sb = new StringBuilder();
appendPaddedInt(c.get(Calendar.YEAR), 4, sb).append('-');
appendPaddedInt(c.get(Calendar.MONTH) + 1, 2, sb).append('-');
appendPaddedInt(c.get(Calendar.DAY_OF_MONTH), 2, sb).append(' ');
@@ -161,7 +161,7 @@ public class LogTracker extends ServiceTracker<LogService, LogService> {
return sb.toString();
}
- private StringBuffer appendPaddedInt(int value, int pad, StringBuffer buffer) {
+ private StringBuilder appendPaddedInt(int value, int pad, StringBuilder buffer) {
pad = pad - 1;
if (pad == 0)
return buffer.append(Integer.toString(value));

Back to the top