Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2016-05-04 10:58:35 +0000
committerLars Vogel2016-05-05 09:31:13 +0000
commit6b799159067d9d904353f767b5e118ae5a437427 (patch)
treec0804d25454857d92946982e33ca6cd08e88d5be /org.eclipse.ui.editors
parentec2621e1aec5c10cbd1294bc70e854f7cf9de8b0 (diff)
downloadeclipse.platform.text-6b799159067d9d904353f767b5e118ae5a437427.tar.gz
eclipse.platform.text-6b799159067d9d904353f767b5e118ae5a437427.tar.xz
eclipse.platform.text-6b799159067d9d904353f767b5e118ae5a437427.zip
Bug 492973 - Avoid invoking inefficient new String() constructor in
eclipse.text Change-Id: I9a45a3bd1583ca517a124ea63d70b17d37305d6a Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'org.eclipse.ui.editors')
-rw-r--r--org.eclipse.ui.editors/src/org/eclipse/ui/internal/texteditor/SourceViewerInformationControl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/texteditor/SourceViewerInformationControl.java b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/texteditor/SourceViewerInformationControl.java
index d298c3afb..eef0739fc 100644
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/texteditor/SourceViewerInformationControl.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/texteditor/SourceViewerInformationControl.java
@@ -384,7 +384,7 @@ class SourceViewerInformationControl implements IInformationControl, IInformatio
GC gc= new GC(widget);
gc.setFont(widget.getFont());
int maxWidth= 0;
- String content= new String();
+ String content= ""; //$NON-NLS-1$
try {
for (int i= 0; i <= last; i++) {

Back to the top