Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Hammer2019-12-06 18:09:23 +0000
committerKarsten Thoms2019-12-10 22:54:35 +0000
commit21f09a48d685553bbb46c3e447e7e8bd36f43ed4 (patch)
tree1037771d29607348cd270757fdc33c0bca15fbfe /org.eclipse.ua.tests/help
parent88d043d5c9b6c8cd889d1868de51ec099cb40d0c (diff)
downloadeclipse.platform.ua-21f09a48d685553bbb46c3e447e7e8bd36f43ed4.tar.gz
eclipse.platform.ua-21f09a48d685553bbb46c3e447e7e8bd36f43ed4.tar.xz
eclipse.platform.ua-21f09a48d685553bbb46c3e447e7e8bd36f43ed4.zip
Remove unnecessary type specifications
Since Java 7 the diamond operator can be used instead of explicit type parameters. Change-Id: I09b387aae76e2bed342456edccbc83c1bf006dac Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
Diffstat (limited to 'org.eclipse.ua.tests/help')
-rw-r--r--org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/ExtraDirTest.java2
-rw-r--r--org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/MetaKeywords.java2
-rw-r--r--org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/PrebuiltIndexCompatibility.java2
-rw-r--r--org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/SearchCheatsheet.java2
-rw-r--r--org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/SearchIntro.java2
-rw-r--r--org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/SearchRanking.java2
-rw-r--r--org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/SearchTestUtils.java2
7 files changed, 7 insertions, 7 deletions
diff --git a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/ExtraDirTest.java b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/ExtraDirTest.java
index 254e991b6..e97ed52fe 100644
--- a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/ExtraDirTest.java
+++ b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/ExtraDirTest.java
@@ -151,7 +151,7 @@ public class ExtraDirTest {
// run test
final Set<String> unexpectedHrefs = new HashSet<>();
- ISearchQuery query = new SearchQuery(searchWord, false, new ArrayList<String>(), Platform.getNL());
+ ISearchQuery query = new SearchQuery(searchWord, false, new ArrayList<>(), Platform.getNL());
SearchResults collector = new SearchResults(workingSets, 500, Platform.getNL());
BaseHelpSystem.getSearchManager().search(query, collector, new NullProgressMonitor());
SearchHit[] hits = collector.getSearchHits();
diff --git a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/MetaKeywords.java b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/MetaKeywords.java
index 6d687a8df..a2343068d 100644
--- a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/MetaKeywords.java
+++ b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/MetaKeywords.java
@@ -63,7 +63,7 @@ public class MetaKeywords {
}
private SearchHit[] getResultDescriptions(String searchWord, String nl) {
- ISearchQuery query = new SearchQuery(searchWord, false, new ArrayList<String>(), nl);
+ ISearchQuery query = new SearchQuery(searchWord, false, new ArrayList<>(), nl);
SearchResults collector = new SearchResults(null, 500, nl);
BaseHelpSystem.getSearchManager().search(query, collector, new NullProgressMonitor());
return collector.getSearchHits();
diff --git a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/PrebuiltIndexCompatibility.java b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/PrebuiltIndexCompatibility.java
index 01323cc4b..e701dbb17 100644
--- a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/PrebuiltIndexCompatibility.java
+++ b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/PrebuiltIndexCompatibility.java
@@ -235,7 +235,7 @@ public class PrebuiltIndexCompatibility {
if ("file".equals(resolved.getProtocol())) { //$NON-NLS-1$
String filePath = resolved.getFile();
QueryBuilder queryBuilder = new QueryBuilder("eclipse", new AnalyzerDescriptor("en-us"));
- Query luceneQuery = queryBuilder.getLuceneQuery(new ArrayList<String>() , false);
+ Query luceneQuery = queryBuilder.getLuceneQuery(new ArrayList<>() , false);
IndexSearcher searcher;
try (Directory luceneDirectory = new NIOFSDirectory(new File(filePath).toPath())) {
searcher = new IndexSearcher(DirectoryReader.open(luceneDirectory));
diff --git a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/SearchCheatsheet.java b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/SearchCheatsheet.java
index e25da1584..93a7a1fe5 100644
--- a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/SearchCheatsheet.java
+++ b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/SearchCheatsheet.java
@@ -31,7 +31,7 @@ import org.junit.Test;
public class SearchCheatsheet {
public SearchHit[] findHits(String searchWord) {
- ISearchQuery query = new SearchQuery(searchWord, false, new ArrayList<String>(), Platform.getNL());
+ ISearchQuery query = new SearchQuery(searchWord, false, new ArrayList<>(), Platform.getNL());
SearchResults collector = new SearchResults(null, 10, Platform.getNL());
BaseHelpSystem.getSearchManager().search(query, collector, new NullProgressMonitor());
return collector.getSearchHits();
diff --git a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/SearchIntro.java b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/SearchIntro.java
index 480251117..33bf8718c 100644
--- a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/SearchIntro.java
+++ b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/SearchIntro.java
@@ -30,7 +30,7 @@ import org.junit.Test;
public class SearchIntro {
public SearchHit[] findHits(String searchWord) {
- ISearchQuery query = new SearchQuery(searchWord, false, new ArrayList<String>(), Platform.getNL());
+ ISearchQuery query = new SearchQuery(searchWord, false, new ArrayList<>(), Platform.getNL());
SearchResults collector = new SearchResults(null, 10, Platform.getNL());
BaseHelpSystem.getSearchManager().search(query, collector, new NullProgressMonitor());
return collector.getSearchHits();
diff --git a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/SearchRanking.java b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/SearchRanking.java
index 3c71ede30..ca6a6982e 100644
--- a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/SearchRanking.java
+++ b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/SearchRanking.java
@@ -31,7 +31,7 @@ import org.junit.Test;
public class SearchRanking {
public SearchHit[] findHits(String searchWord) {
- ISearchQuery query = new SearchQuery(searchWord, false, new ArrayList<String>(), Platform.getNL());
+ ISearchQuery query = new SearchQuery(searchWord, false, new ArrayList<>(), Platform.getNL());
SearchResults collector = new SearchResults(null, 10, Platform.getNL());
BaseHelpSystem.getSearchManager().search(query, collector, new NullProgressMonitor());
return collector.getSearchHits();
diff --git a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/SearchTestUtils.java b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/SearchTestUtils.java
index 5818f8b36..566b39dbd 100644
--- a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/SearchTestUtils.java
+++ b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/search/SearchTestUtils.java
@@ -98,7 +98,7 @@ public class SearchTestUtils {
public static SearchHit[] getSearchHits(String searchWord, String nl) {
SearchHit[] hits;
- ISearchQuery query = new SearchQuery(searchWord, false, new ArrayList<String>(), nl);
+ ISearchQuery query = new SearchQuery(searchWord, false, new ArrayList<>(), nl);
SearchResults collector = new SearchResults(null, 500, nl);
BaseHelpSystem.getSearchManager().search(query, collector, new NullProgressMonitor());
hits = collector.getSearchHits();

Back to the top