Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2019-11-05 09:22:49 +0000
committerLars Vogel2019-11-05 09:23:24 +0000
commitbeb7bc73366c2e07b6d0b8ff7a84a9909a2a9139 (patch)
tree31bd62e5c9e45d39439bb68e524cadc2cb6d7211
parent3732a5c54b1c1c6638d789ec942569c1e94d28fe (diff)
downloadeclipse.platform.text-beb7bc73366c2e07b6d0b8ff7a84a9909a2a9139.tar.gz
eclipse.platform.text-beb7bc73366c2e07b6d0b8ff7a84a9909a2a9139.tar.xz
eclipse.platform.text-beb7bc73366c2e07b6d0b8ff7a84a9909a2a9139.zip
Remove redundant type arguments in text.quicksearch
Change-Id: I996c7d26284b93ad40ddb134a7a2a8ecf4f95906 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--org.eclipse.text.quicksearch/src/org/eclipse/text/quicksearch/internal/core/priority/DefaultPriorityFunction.java2
-rw-r--r--org.eclipse.text.quicksearch/src/org/eclipse/text/quicksearch/internal/ui/QuickSearchContext.java2
-rw-r--r--org.eclipse.text.quicksearch/src/org/eclipse/text/quicksearch/internal/util/DocumentFetcher.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.text.quicksearch/src/org/eclipse/text/quicksearch/internal/core/priority/DefaultPriorityFunction.java b/org.eclipse.text.quicksearch/src/org/eclipse/text/quicksearch/internal/core/priority/DefaultPriorityFunction.java
index 3eac6bc47..fa39c900d 100644
--- a/org.eclipse.text.quicksearch/src/org/eclipse/text/quicksearch/internal/core/priority/DefaultPriorityFunction.java
+++ b/org.eclipse.text.quicksearch/src/org/eclipse/text/quicksearch/internal/core/priority/DefaultPriorityFunction.java
@@ -148,7 +148,7 @@ public class DefaultPriorityFunction extends PriorityFunction {
private void ignore(IContainer folder) {
if (ignoredResources==null) {
- ignoredResources = new HashSet<IResource>();
+ ignoredResources = new HashSet<>();
}
ignoredResources.add(folder);
}
diff --git a/org.eclipse.text.quicksearch/src/org/eclipse/text/quicksearch/internal/ui/QuickSearchContext.java b/org.eclipse.text.quicksearch/src/org/eclipse/text/quicksearch/internal/ui/QuickSearchContext.java
index 4332065e1..5c6b5e7a8 100644
--- a/org.eclipse.text.quicksearch/src/org/eclipse/text/quicksearch/internal/ui/QuickSearchContext.java
+++ b/org.eclipse.text.quicksearch/src/org/eclipse/text/quicksearch/internal/ui/QuickSearchContext.java
@@ -102,7 +102,7 @@ public class QuickSearchContext {
try {
IWorkbenchPage page = window.getActivePage();
if (page!=null) {
- Collection<IFile> files = new ArrayList<IFile>();
+ Collection<IFile> files = new ArrayList<>();
IEditorReference[] editors = page.getEditorReferences();
if (editors!=null) {
for (IEditorReference editor : editors) {
diff --git a/org.eclipse.text.quicksearch/src/org/eclipse/text/quicksearch/internal/util/DocumentFetcher.java b/org.eclipse.text.quicksearch/src/org/eclipse/text/quicksearch/internal/util/DocumentFetcher.java
index 1fa086156..576217214 100644
--- a/org.eclipse.text.quicksearch/src/org/eclipse/text/quicksearch/internal/util/DocumentFetcher.java
+++ b/org.eclipse.text.quicksearch/src/org/eclipse/text/quicksearch/internal/util/DocumentFetcher.java
@@ -132,7 +132,7 @@ public class DocumentFetcher {
* @return returns a map from IFile to IDocument for all open, dirty editors.
*/
private Map<IFile, IDocument> evalNonFileBufferDocuments() {
- Map<IFile, IDocument> result= new HashMap<IFile, IDocument>();
+ Map<IFile, IDocument> result= new HashMap<>();
IWorkbench workbench= PlatformUI.getWorkbench();
IWorkbenchWindow[] windows= workbench.getWorkbenchWindows();
for (int i= 0; i < windows.length; i++) {

Back to the top