Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Hammer2019-05-24 15:03:16 +0000
committerCarsten Hammer2019-06-13 21:46:13 +0000
commitec774ae5b0e9989299dc7daad7b657949cd66f28 (patch)
treecced82e459bdc133653171278dbba51fc5cf083e /org.eclipse.debug.ui/ui/org/eclipse/debug/ui
parent99e752f89849a969a3cd0235ea9a766e4a15bc9c (diff)
downloadeclipse.platform.debug-ec774ae5b0e9989299dc7daad7b657949cd66f28.tar.gz
eclipse.platform.debug-ec774ae5b0e9989299dc7daad7b657949cd66f28.tar.xz
eclipse.platform.debug-ec774ae5b0e9989299dc7daad7b657949cd66f28.zip
Use StringBuilder instead of StringBuffer where possible.
Change-Id: I990721405fb7e486fc93ef2b22e56e81ed4a78c8 Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/StringVariableSelectionDialog.java2
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/AbstractLaunchHistoryAction.java2
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/ContextualLaunchAction.java2
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/ExportBreakpointsOperation.java2
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/LaunchAsAction.java2
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/LaunchShortcutsAction.java2
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/AbstractMemoryRendering.java2
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/AbstractTableRendering.java4
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/AbstractTextRendering.java2
9 files changed, 10 insertions, 10 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/StringVariableSelectionDialog.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/StringVariableSelectionDialog.java
index 2edbbcae3..b6c7ddb2d 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/StringVariableSelectionDialog.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/StringVariableSelectionDialog.java
@@ -119,7 +119,7 @@ public class StringVariableSelectionDialog extends ElementListSelectionDialog {
Object[] selected = getResult();
if (selected != null && selected.length == 1) {
IStringVariable variable = (IStringVariable)selected[0];
- StringBuffer buffer = new StringBuffer();
+ StringBuilder buffer = new StringBuilder();
buffer.append("${"); //$NON-NLS-1$
buffer.append(variable.getName());
if (fArgumentValue != null && fArgumentValue.length() > 0) {
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/AbstractLaunchHistoryAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/AbstractLaunchHistoryAction.java
index 060a5dd6a..d0fc7c389 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/AbstractLaunchHistoryAction.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/AbstractLaunchHistoryAction.java
@@ -146,7 +146,7 @@ public abstract class AbstractLaunchHistoryAction implements IActionDelegate2, I
* @param accelerator the number that should appear as an accelerator
*/
protected void addToMenu(Menu menu, IAction action, int accelerator) {
- StringBuffer label= new StringBuffer();
+ StringBuilder label= new StringBuilder();
if (accelerator >= 0 && accelerator < 10) {
//add the numerical accelerator
label.append('&');
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/ContextualLaunchAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/ContextualLaunchAction.java
index 04eae0f16..e0c837f28 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/ContextualLaunchAction.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/ContextualLaunchAction.java
@@ -298,7 +298,7 @@ public abstract class ContextualLaunchAction implements IObjectActionDelegate, I
if (helpContextId != null) {
PlatformUI.getWorkbench().getHelpSystem().setHelp(action, helpContextId);
}
- StringBuffer label= new StringBuffer();
+ StringBuilder label= new StringBuilder();
if (accelerator >= 0 && accelerator < 10) {
//add the numerical accelerator
label.append('&');
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/ExportBreakpointsOperation.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/ExportBreakpointsOperation.java
index 90b4c8973..b3b4b7b27 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/ExportBreakpointsOperation.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/ExportBreakpointsOperation.java
@@ -168,7 +168,7 @@ public class ExportBreakpointsOperation implements IRunnableWithProgress {
*/
private String getWorkingSetsAttribute(IBreakpoint breakpoint) {
IWorkingSetManager mgr = PlatformUI.getWorkbench().getWorkingSetManager();
- StringBuffer buffer = new StringBuffer();
+ StringBuilder buffer = new StringBuilder();
IWorkingSet[] sets = mgr.getWorkingSets();
for (int i = 0; i < sets.length; i++) {
if(IDebugUIConstants.BREAKPOINT_WORKINGSET_ID.equals(sets[i].getId()) &&
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/LaunchAsAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/LaunchAsAction.java
index c301cd6a1..b0d800b58 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/LaunchAsAction.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/LaunchAsAction.java
@@ -102,7 +102,7 @@ public class LaunchAsAction extends Action implements IMenuCreator, IWorkbenchWi
}
private void createAction(Menu parent, IAction action, int count) {
- StringBuffer label= new StringBuffer();
+ StringBuilder label= new StringBuilder();
//add the numerical accelerator
if (count < 10) {
label.append('&');
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/LaunchShortcutsAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/LaunchShortcutsAction.java
index 36be7fbc1..aa905eacb 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/LaunchShortcutsAction.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/LaunchShortcutsAction.java
@@ -235,7 +235,7 @@ public class LaunchShortcutsAction extends Action implements IMenuCreator, IWork
if (helpContextId != null) {
PlatformUI.getWorkbench().getHelpSystem().setHelp(action, helpContextId);
}
- StringBuffer label= new StringBuffer();
+ StringBuilder label= new StringBuilder();
if (accelerator >= 0 && accelerator < 10) {
//add the numerical accelerator
label.append('&');
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/AbstractMemoryRendering.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/AbstractMemoryRendering.java
index 959162a87..f4e5588c6 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/AbstractMemoryRendering.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/AbstractMemoryRendering.java
@@ -224,7 +224,7 @@ public abstract class AbstractMemoryRendering extends PlatformObject implements
return IInternalDebugCoreConstants.EMPTY_STRING;
}
- StringBuffer label = new StringBuffer(IInternalDebugCoreConstants.EMPTY_STRING);
+ StringBuilder label = new StringBuilder(IInternalDebugCoreConstants.EMPTY_STRING);
if (fMemoryBlock instanceof IMemoryBlockExtension)
{
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/AbstractTableRendering.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/AbstractTableRendering.java
index 39d8053de..75928a8ba 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/AbstractTableRendering.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/AbstractTableRendering.java
@@ -954,7 +954,7 @@ public abstract class AbstractTableRendering extends AbstractBaseTableRendering
if (!validated)
{
// pop up dialog to ask user for default values
- StringBuffer msgBuffer = new StringBuffer(DebugUIMessages.AbstractTableRendering_20);
+ StringBuilder msgBuffer = new StringBuilder(DebugUIMessages.AbstractTableRendering_20);
msgBuffer.append(" "); //$NON-NLS-1$
msgBuffer.append(this.getLabel());
msgBuffer.append("\n\n"); //$NON-NLS-1$
@@ -3796,7 +3796,7 @@ public abstract class AbstractTableRendering extends AbstractBaseTableRendering
*/
protected String getToolTipText(BigInteger address, MemoryByte[] bytes)
{
- StringBuffer buf = new StringBuffer("0x"); //$NON-NLS-1$
+ StringBuilder buf = new StringBuilder("0x"); //$NON-NLS-1$
buf.append(address.toString(16).toUpperCase());
return buf.toString();
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/AbstractTextRendering.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/AbstractTextRendering.java
index c068d6acc..f62d75687 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/AbstractTextRendering.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/AbstractTextRendering.java
@@ -107,7 +107,7 @@ abstract public class AbstractTextRendering extends AbstractTableRendering {
if (hasInvalid)
{
- StringBuffer strBuf = new StringBuffer();
+ StringBuilder strBuf = new StringBuilder();
for (int i=0; i<data.length; i++)
{
if (invalid[i]) {

Back to the top