Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2019-06-20 06:55:39 +0000
committerLars Vogel2019-06-20 14:23:44 +0000
commit28eafb0f03d500dd162f2151845d2644cfc5ab5c (patch)
tree566014f80e777223b4d78d8d43b87d9f9289beed /org.eclipse.debug.ui/ui/org/eclipse/debug/ui
parent7757dfc66e70003c0d3b546af66aba962b4fa44e (diff)
downloadeclipse.platform.debug-28eafb0f03d500dd162f2151845d2644cfc5ab5c.tar.gz
eclipse.platform.debug-28eafb0f03d500dd162f2151845d2644cfc5ab5c.tar.xz
eclipse.platform.debug-28eafb0f03d500dd162f2151845d2644cfc5ab5c.zip
Small String optimizationI20190620-1800
Useless toString call in String concatenation Using String.valueOf instead of ""+ Use faster indexof('') version Change-Id: Iec383bd1b6af03a40af735f9ec878689caf4fb23 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/AbstractMemoryRendering.java4
1 files changed, 2 insertions, 2 deletions
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 f4e5588c6..6e353459f 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
@@ -285,9 +285,9 @@ public abstract class AbstractMemoryRendering extends PlatformObject implements
*/
protected String decorateLabel(String label) {
if (fLabelDecorator != null) {
- return fLabelDecorator.decorateText(label.toString(), this);
+ return fLabelDecorator.decorateText(label, this);
}
- return label.toString();
+ return label;
}
/**

Back to the top