diff options
author | Fred Bricon | 2018-04-10 14:56:01 +0000 |
---|---|---|
committer | Fred Bricon | 2018-04-10 14:56:01 +0000 |
commit | 9f4036d305bf69600097a53dba1c5230bce464dc (patch) | |
tree | 0edd6521fa718f47f6c7dd9a36dd3c13ea2eb6ab /org.eclipse.m2e.editor.xml | |
parent | 41f5ae34ad2543ef1439b7fd7e0a03b596af8685 (diff) | |
download | m2e-core-9f4036d305bf69600097a53dba1c5230bce464dc.tar.gz m2e-core-9f4036d305bf69600097a53dba1c5230bce464dc.tar.xz m2e-core-9f4036d305bf69600097a53dba1c5230bce464dc.zip |
Code cleanup: replace StringBuffers with StringBuilders
Change-Id: I47377dfbb4be208cf7f7e4b318217e58faf754e4
Signed-off-by: Fred Bricon <fbricon@gmail.com>
Diffstat (limited to 'org.eclipse.m2e.editor.xml')
2 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/InsertExpressionProposal.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/InsertExpressionProposal.java index 6dedd533..c91f0bd9 100644 --- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/InsertExpressionProposal.java +++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/InsertExpressionProposal.java @@ -81,7 +81,7 @@ public class InsertExpressionProposal } } } - StringBuffer buff = new StringBuffer(); + StringBuilder buff = new StringBuilder(); buff.append("<html>"); //$NON-NLS-1$ if(value != null) { buff.append(NLS.bind(Messages.InsertExpressionProposal_hint1, value)); diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/XmlUtils.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/XmlUtils.java index f29862d6..ab5f52ff 100644 --- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/XmlUtils.java +++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/XmlUtils.java @@ -279,7 +279,7 @@ public class XmlUtils { * level -1 means all the way to the top. */ public static String pathUp(Node node, int level) { - StringBuffer buf = new StringBuffer(); + StringBuilder buf = new StringBuilder(); int current = level; while(node != null && current > 0) { if(node instanceof Element) { |