diff options
author | Lars Vogel | 2019-12-19 18:11:36 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2020-01-15 08:17:32 +0000 |
commit | 6ded71d47a2c4b3c2acc086040e4d75f2341ceb7 (patch) | |
tree | b151b4b8bf4dc65975387b80ec5eed3dd0792c7a /org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java | |
parent | f4cc6a3ffa8fa4ea7b2dfdcd2709ca27936fcdcd (diff) | |
download | eclipse.platform.text-6ded71d47a2c4b3c2acc086040e4d75f2341ceb7.tar.gz eclipse.platform.text-6ded71d47a2c4b3c2acc086040e4d75f2341ceb7.tar.xz eclipse.platform.text-6ded71d47a2c4b3c2acc086040e4d75f2341ceb7.zip |
Remove unnecessary array creation for varargs in bundlesI20200116-0930I20200116-0330I20200116-0310I20200115-1800
Using the batch cleanup operation via Source -> Cleanup -> "Remove
unnecessary array creation for varargs " from standard JDT.
See also https://bugs.eclipse.org/bugs/show_bug.cgi?id=559175 applying
this cleanup to LinkedModeConfigurationBlock results in a syntax error
Change-Id: I097502952bbb3263c8b3253efff95a0d1981acf2
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java')
-rw-r--r-- | org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java index cf5f1f3b37b..6ace776d378 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java @@ -3520,7 +3520,7 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit // Install drag source final ISelectionProvider selectionProvider= viewer.getSelectionProvider(); final DragSource source= new DragSource(st, DND.DROP_COPY | DND.DROP_MOVE); - source.setTransfer(new Transfer[] {TextTransfer.getInstance()}); + source.setTransfer(TextTransfer.getInstance()); source.addDragListener(new DragSourceAdapter() { String fSelectedText; Point fSelection; @@ -4753,8 +4753,8 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit msg= NLSUtility.format(EditorMessages.Editor_error_activated_outofsync_message, inputName); if (MessageDialog.open(MessageDialog.QUESTION, shell, title, msg, SWT.NONE, - new String[] { EditorMessages.Editor_error_replace_button_label, - EditorMessages.Editor_error_dontreplace_button_label }) == 0) { + EditorMessages.Editor_error_replace_button_label, + EditorMessages.Editor_error_dontreplace_button_label) == 0) { try { if (provider instanceof IDocumentProviderExtension) { |