diff options
author | Lars Vogel | 2021-06-08 09:16:11 +0000 |
---|---|---|
committer | Lars Vogel | 2021-06-08 12:24:12 +0000 |
commit | c5fe8ecfd21ade83a548ed84b0ffdb8e50512ff3 (patch) | |
tree | 360d7df1eee9ef08a1a20b13ed269711a28f47eb | |
parent | bcc11db2276dd1bc14d21a0405b80e4cbd854390 (diff) | |
download | eclipse.platform.text-c5fe8ecfd21ade83a548ed84b0ffdb8e50512ff3.tar.gz eclipse.platform.text-c5fe8ecfd21ade83a548ed84b0ffdb8e50512ff3.tar.xz eclipse.platform.text-c5fe8ecfd21ade83a548ed84b0ffdb8e50512ff3.zip |
StringBuilder instead of StringBuffer in
HTMLPrinter
Used upcoming JDT cleanup to replace this usage in PDE, StringBuilder is
not synchronized and hence should be preferred.
Change-Id: I7d141dc73d61ef1135c912c2025a822cde5cf021
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/181565
Tested-by: Platform Bot <platform-bot@eclipse.org>
-rw-r--r-- | org.eclipse.jface.text/src/org/eclipse/jface/internal/text/html/HTMLPrinter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/html/HTMLPrinter.java b/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/html/HTMLPrinter.java index 079bbd43c37..a620e3da273 100644 --- a/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/html/HTMLPrinter.java +++ b/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/html/HTMLPrinter.java @@ -356,7 +356,7 @@ public class HTMLPrinter { if (styles == null || styles.length == 0) return; - StringBuffer styleBuf= new StringBuffer(10 * styles.length); + StringBuilder styleBuf= new StringBuilder(10 * styles.length); for (String style : styles) { styleBuf.append(" style=\""); //$NON-NLS-1$ styleBuf.append(style); |