Skip to content

Commit 5a47d61

Browse files
committed
Use StringBuilder methods of HTMLPrinter
eclipse-platform/eclipse.platform.ui#3495
1 parent 601aa68 commit 5a47d61

File tree

1 file changed

+2
-2
lines changed
  • plugins/org.eclipse.oomph.setup.editor/src/org/eclipse/oomph/setup/presentation

1 file changed

+2
-2
lines changed

plugins/org.eclipse.oomph.setup.editor/src/org/eclipse/oomph/setup/presentation/SetupEditor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6270,7 +6270,7 @@ private ToolItem createItem(int style, String imageKey, String toolTipText, Sele
62706270
return toolItem;
62716271
}
62726272

6273-
@SuppressWarnings({ "restriction", "deprecation" })
6273+
@SuppressWarnings("restriction")
62746274
private String getFullHTML(String text)
62756275
{
62766276
if (setupEditor == null)
@@ -6286,7 +6286,7 @@ private String getFullHTML(String text)
62866286
Color foregroundColor = content.getForeground();
62876287
Color backgroundColor = content.getBackground();
62886288

6289-
StringBuffer result = new StringBuffer(text);
6289+
StringBuilder result = new StringBuilder(text);
62906290
org.eclipse.jface.internal.text.html.HTMLPrinter.insertPageProlog(result, 0, foregroundColor == null ? null : foregroundColor.getRGB(),
62916291
backgroundColor == null ? null : backgroundColor.getRGB(), styleSheet);
62926292
org.eclipse.jface.internal.text.html.HTMLPrinter.addPageEpilog(result);

0 commit comments

Comments
 (0)