Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2019-11-05 09:23:06 +0000
committerLars Vogel2019-11-05 09:23:30 +0000
commitfe05cafd71c11ddf49b34f89c12880ed5a00c40a (patch)
tree99d846deb52938bff5d09f550c04a0e44ddff325
parentbeb7bc73366c2e07b6d0b8ff7a84a9909a2a9139 (diff)
downloadeclipse.platform.text-fe05cafd71c11ddf49b34f89c12880ed5a00c40a.tar.gz
eclipse.platform.text-fe05cafd71c11ddf49b34f89c12880ed5a00c40a.tar.xz
eclipse.platform.text-fe05cafd71c11ddf49b34f89c12880ed5a00c40a.zip
Remove redundant type arguments in ui.genericeditorI20191105-1800
Change-Id: If85c4edcabb5cf0a595068087ff83d859942341c Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/DefaultContentAssistProcessor.java2
-rw-r--r--org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/ExtensionBasedTextViewerConfiguration.java2
-rw-r--r--org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/GenericEditorWithIconAssociationOverride.java2
-rw-r--r--org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/folding/IndentFoldingStrategy.java4
4 files changed, 5 insertions, 5 deletions
diff --git a/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/DefaultContentAssistProcessor.java b/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/DefaultContentAssistProcessor.java
index c1dbc5f24..a446ba6f9 100644
--- a/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/DefaultContentAssistProcessor.java
+++ b/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/DefaultContentAssistProcessor.java
@@ -59,7 +59,7 @@ public class DefaultContentAssistProcessor implements IContentAssistProcessor {
int wordStartIndex = findStartingPoint(text, offset);
String prefix = text.substring(wordStartIndex, offset);
- List<ICompletionProposal> proposals = new ArrayList<ICompletionProposal>();
+ List<ICompletionProposal> proposals = new ArrayList<>();
for (String token : tokenSet) {
if ((token==null)||(token.length()<2)) {
continue;
diff --git a/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/ExtensionBasedTextViewerConfiguration.java b/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/ExtensionBasedTextViewerConfiguration.java
index 0258fd21e..70510752e 100644
--- a/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/ExtensionBasedTextViewerConfiguration.java
+++ b/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/ExtensionBasedTextViewerConfiguration.java
@@ -194,7 +194,7 @@ public final class ExtensionBasedTextViewerConfiguration extends TextSourceViewe
@Override public IQuickAssistAssistant getQuickAssistAssistant(ISourceViewer sourceViewer) {
QuickAssistAssistant quickAssistAssistant = new QuickAssistAssistant();
- List<IQuickAssistProcessor> quickAssistProcessors = new ArrayList<IQuickAssistProcessor>();
+ List<IQuickAssistProcessor> quickAssistProcessors = new ArrayList<>();
quickAssistProcessors.add(new MarkerResoltionQuickAssistProcessor());
quickAssistProcessors.addAll(GenericEditorPlugin.getDefault().getQuickAssistProcessorRegistry().getQuickAssistProcessors(sourceViewer, editor, getContentTypes(sourceViewer)));
CompositeQuickAssistProcessor compQuickAssistProcessor = new CompositeQuickAssistProcessor(quickAssistProcessors);
diff --git a/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/GenericEditorWithIconAssociationOverride.java b/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/GenericEditorWithIconAssociationOverride.java
index 4a3d7ccc0..033d52311 100644
--- a/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/GenericEditorWithIconAssociationOverride.java
+++ b/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/GenericEditorWithIconAssociationOverride.java
@@ -29,7 +29,7 @@ import org.eclipse.ui.ide.IEditorAssociationOverride;
*/
public class GenericEditorWithIconAssociationOverride implements IEditorAssociationOverride {
- private Map<String, IEditorDescriptor> descriptorMap = new HashMap<String, IEditorDescriptor>();
+ private Map<String, IEditorDescriptor> descriptorMap = new HashMap<>();
@Override
public IEditorDescriptor[] overrideEditors(IEditorInput editorInput, IContentType contentType,
diff --git a/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/folding/IndentFoldingStrategy.java b/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/folding/IndentFoldingStrategy.java
index a0ba1c3a3..9c44642fa 100644
--- a/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/folding/IndentFoldingStrategy.java
+++ b/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/folding/IndentFoldingStrategy.java
@@ -174,10 +174,10 @@ public class IndentFoldingStrategy implements IReconcilingStrategy, IReconciling
// these are what are passed off to the annotation model to
// actually create and maintain the annotations
- List<Annotation> modifications = new ArrayList<Annotation>();
+ List<Annotation> modifications = new ArrayList<>();
List<FoldingAnnotation> deletions = new ArrayList<>();
List<FoldingAnnotation> existing = new ArrayList<>();
- Map<Annotation, Position> additions = new HashMap<Annotation, Position>();
+ Map<Annotation, Position> additions = new HashMap<>();
// find and mark all folding annotations with length 0 for deletion
markInvalidAnnotationsForDeletion(dirtyRegion, deletions, existing);

Back to the top