diff options
author | Alexander Kurtakov | 2021-09-29 07:23:34 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2021-10-01 17:42:01 +0000 |
commit | 2267bdcb2b9d1448e3ed5e9f27e261cb8419fe6b (patch) | |
tree | 2489de4e46c988bad101da7f925cee4a380a56f3 /org.eclipse.jface.text/src/org/eclipse/jface | |
parent | 0bbd1e7d64bf7f94d49d74c5a4fc714da149cf15 (diff) | |
download | eclipse.platform.text-2267bdcb2b9d1448e3ed5e9f27e261cb8419fe6b.tar.gz eclipse.platform.text-2267bdcb2b9d1448e3ed5e9f27e261cb8419fe6b.tar.xz eclipse.platform.text-2267bdcb2b9d1448e3ed5e9f27e261cb8419fe6b.zip |
Fix warnings in jface.testsI20211001-1800
* Remove redundant type arguments
* Remove redundant implements
* Enable save actions to automate some of that work for the future
Change-Id: I0a5ea194e2b281ef08605078c2f842c692269430
Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/185931
Tested-by: Platform Bot <platform-bot@eclipse.org>
Reviewed-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'org.eclipse.jface.text/src/org/eclipse/jface')
-rw-r--r-- | org.eclipse.jface.text/src/org/eclipse/jface/internal/text/SelectionProcessor.java | 8 | ||||
-rw-r--r-- | org.eclipse.jface.text/src/org/eclipse/jface/text/TextSelection.java | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/SelectionProcessor.java b/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/SelectionProcessor.java index f2ab69667cc..08ed671a85c 100644 --- a/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/SelectionProcessor.java +++ b/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/SelectionProcessor.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2012 Avaloq Evolution AG and others. + * Copyright (c) 2009, 2021 Avaloq Evolution AG and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -193,7 +193,7 @@ public final class SelectionProcessor { private final Implementation<ISelection> NULL_IMPLEMENTATION= new Implementation<>(); - private final Implementation<ITextSelection> RANGE_IMPLEMENTATION= new Implementation<ITextSelection>() { + private final Implementation<ITextSelection> RANGE_IMPLEMENTATION= new Implementation<>() { @Override TextEdit replace(ITextSelection selection, String replacement) { return new ReplaceEdit(selection.getOffset(), selection.getLength(), replacement); @@ -254,7 +254,7 @@ public final class SelectionProcessor { } }; - private final Implementation<IMultiTextSelection> RANGES_IMPLEMENTATION= new Implementation<IMultiTextSelection>() { + private final Implementation<IMultiTextSelection> RANGES_IMPLEMENTATION= new Implementation<>() { private MultiTextEdit rangeEdits(IMultiTextSelection selection, Function<IRegion, TextEdit> regionToTextEdit) { MultiTextEdit res= new MultiTextEdit(); @@ -461,7 +461,7 @@ public final class SelectionProcessor { } }; - private final Implementation<IBlockTextSelection> COLUMN_IMPLEMENTATION= new Implementation<IBlockTextSelection>() { + private final Implementation<IBlockTextSelection> COLUMN_IMPLEMENTATION= new Implementation<>() { private TextEdit replace(IBlockTextSelection selection, String replacement, boolean delete) throws BadLocationException { try { MultiTextEdit root; diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/TextSelection.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/TextSelection.java index 4472bcf0374..ebaa434231f 100644 --- a/org.eclipse.jface.text/src/org/eclipse/jface/text/TextSelection.java +++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/TextSelection.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2009 IBM Corporation and others. + * Copyright (c) 2000, 2021 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -25,7 +25,7 @@ import org.eclipse.core.runtime.Platform; * generated from a selection provider, it only remembers its offset and length * and computes the remaining information on request.</p> */ -public class TextSelection implements ITextSelection, IMultiTextSelection { +public class TextSelection implements IMultiTextSelection { /** * Debug option for asserting valid offset and length. |