diff options
author | Lars Vogel | 2019-06-17 10:50:25 +0000 |
---|---|---|
committer | Lars Vogel | 2019-06-17 10:50:25 +0000 |
commit | 47b5e1fc851acdb24521ae9fcaae1f31308e610c (patch) | |
tree | 912324e7fce6343ca183552e860a982faa97ae4a | |
parent | e8d291d9a4d22674c38c2ff5ceb9e7ae60faf8a8 (diff) | |
download | eclipse.platform.debug-47b5e1fc851acdb24521ae9fcaae1f31308e610c.tar.gz eclipse.platform.debug-47b5e1fc851acdb24521ae9fcaae1f31308e610c.tar.xz eclipse.platform.debug-47b5e1fc851acdb24521ae9fcaae1f31308e610c.zip |
StringBuilder instead of StringBuffer
Change-Id: Ife52e063a0baa0504b6549f25df4d170999f0498
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/LazyModelPresentation.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/LazyModelPresentation.java index cdc78ef3b..3bfd46ce2 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/LazyModelPresentation.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/LazyModelPresentation.java @@ -206,7 +206,7 @@ public class LazyModelPresentation implements IDebugModelPresentation, IDebugEdi buf.append(getDefaultText(element)); return buf.toString(); } else if (element instanceof IVariable) { - return new StringBuffer(((IVariable)element).getValue().getReferenceTypeName()).append(' ').append(getDefaultText(element)).toString(); + return new StringBuilder(((IVariable)element).getValue().getReferenceTypeName()).append(' ').append(getDefaultText(element)).toString(); } } catch (DebugException de) { DebugUIPlugin.log(de); diff --git a/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/model/BuilderUtils.java b/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/model/BuilderUtils.java index c9daf48ec..2605b8587 100644 --- a/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/model/BuilderUtils.java +++ b/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/model/BuilderUtils.java @@ -147,7 +147,7 @@ public class BuilderUtils { */ public static ILaunchConfiguration duplicateConfiguration(IProject project, ILaunchConfiguration config) throws CoreException { Map<String, Object> attributes = config.getAttributes(); - String newName= new StringBuffer(config.getName()).append(ExternalToolsModelMessages.BuilderUtils_7).toString(); + String newName= new StringBuilder(config.getName()).append(ExternalToolsModelMessages.BuilderUtils_7).toString(); newName= DebugPlugin.getDefault().getLaunchManager().generateLaunchConfigurationName(newName); ILaunchConfigurationType newType= getConfigurationDuplicationType(config); ILaunchConfigurationWorkingCopy newWorkingCopy= newType.newInstance(getBuilderFolder(project, true), newName); |