Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2017-07-24 08:33:43 +0000
committerLars Vogel2017-07-24 08:33:43 +0000
commit72526f2f1e7f31e02f4ae4d98af873647a2b1245 (patch)
tree83bcf11faafb4bcfe38fc0696323ab64f0d85cc4
parent448a82d61adda26ca07650af8678899345f3742e (diff)
downloadeclipse.platform.runtime-72526f2f1e7f31e02f4ae4d98af873647a2b1245.tar.gz
eclipse.platform.runtime-72526f2f1e7f31e02f4ae4d98af873647a2b1245.tar.xz
eclipse.platform.runtime-72526f2f1e7f31e02f4ae4d98af873647a2b1245.zip
Bug 516531 - Use StringBuilder instead of StringBuffer in
eclipse.platform.runtime Change-Id: I941dd8f26300e48713169d0077743b70a5315a0f Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/InternalPlatform.java2
-rw-r--r--bundles/org.eclipse.core.runtime/src/org/eclipse/core/runtime/PerformanceStats.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/InternalPlatform.java b/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/InternalPlatform.java
index eb09e98e0..7c04cdbdc 100644
--- a/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/InternalPlatform.java
+++ b/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/InternalPlatform.java
@@ -895,7 +895,7 @@ public final class InternalPlatform {
* Pre-pend the message with the current date and the name of the current thread.
*/
public static void message(String message) {
- StringBuffer buffer = new StringBuffer();
+ StringBuilder buffer = new StringBuilder();
buffer.append(new Date(System.currentTimeMillis()));
buffer.append(" - ["); //$NON-NLS-1$
buffer.append(Thread.currentThread().getName());
diff --git a/bundles/org.eclipse.core.runtime/src/org/eclipse/core/runtime/PerformanceStats.java b/bundles/org.eclipse.core.runtime/src/org/eclipse/core/runtime/PerformanceStats.java
index 018a2350d..e27a8439b 100644
--- a/bundles/org.eclipse.core.runtime/src/org/eclipse/core/runtime/PerformanceStats.java
+++ b/bundles/org.eclipse.core.runtime/src/org/eclipse/core/runtime/PerformanceStats.java
@@ -525,7 +525,7 @@ public class PerformanceStats {
*/
@Override
public String toString() {
- StringBuffer result = new StringBuffer("PerformanceStats("); //$NON-NLS-1$
+ StringBuilder result = new StringBuilder("PerformanceStats("); //$NON-NLS-1$
result.append(event);
result.append(',');
result.append(blame);

Back to the top