diff --git a/org.eclipse.help.base/src/org/eclipse/help/internal/search/SearchQuery.java b/org.eclipse.help.base/src/org/eclipse/help/internal/search/SearchQuery.java index e0190bb36..b4b5015ca 100644 --- a/org.eclipse.help.base/src/org/eclipse/help/internal/search/SearchQuery.java +++ b/org.eclipse.help.base/src/org/eclipse/help/internal/search/SearchQuery.java @@ -27,7 +27,7 @@ public class SearchQuery implements ISearchQuery { String locale; String searchWord; public SearchQuery() { - this("", false, new ArrayList(), Platform.getNL()); //$NON-NLS-1$ + this("", false, new ArrayList<>(), Platform.getNL()); //$NON-NLS-1$ } public SearchQuery(String searchWord, boolean fieldSearch, Collection fieldNames, String locale) { diff --git a/org.eclipse.help.base/src_demo/org/apache/lucene/demo/html/Tags.java b/org.eclipse.help.base/src_demo/org/apache/lucene/demo/html/Tags.java index fe892d9f2..b83121036 100644 --- a/org.eclipse.help.base/src_demo/org/apache/lucene/demo/html/Tags.java +++ b/org.eclipse.help.base/src_demo/org/apache/lucene/demo/html/Tags.java @@ -26,7 +26,7 @@ public final class Tags { /** * contains all tags for which whitespaces have to be inserted for proper tokenization */ - public static final Set WS_ELEMS = Collections.synchronizedSet(new HashSet()); + public static final Set WS_ELEMS = Collections.synchronizedSet(new HashSet<>()); static{ WS_ELEMS.add("