Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Goldthorpe2011-01-07 21:34:57 +0000
committerChris Goldthorpe2011-01-07 21:34:57 +0000
commite1e5825f8b39c2ee117c82968696431e83bcef14 (patch)
treedb3b10b53613bd8fc8841538089d3130363ffbf9 /org.eclipse.ua.tests/help/org
parent70b0e0aa5d7848b81d2d61c64af932830a8d54f6 (diff)
downloadeclipse.platform.ua-e1e5825f8b39c2ee117c82968696431e83bcef14.tar.gz
eclipse.platform.ua-e1e5825f8b39c2ee117c82968696431e83bcef14.tar.xz
eclipse.platform.ua-e1e5825f8b39c2ee117c82968696431e83bcef14.zip
Fix warnings when compiled with Java 5.0
Diffstat (limited to 'org.eclipse.ua.tests/help/org')
-rw-r--r--org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/webextension/TitleSearchData.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/webextension/TitleSearchData.java b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/webextension/TitleSearchData.java
index b6cceaa65..f6514570f 100644
--- a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/webextension/TitleSearchData.java
+++ b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/webextension/TitleSearchData.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009 IBM Corporation and others.
+ * Copyright (c) 2009, 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -29,7 +29,7 @@ public TitleSearchData(ServletContext context, HttpServletRequest request,
super(context, request, response);
}
-private List results;
+private List<SearchResult> results;
private String searchTerm;
public class SearchResult {
@@ -38,7 +38,7 @@ public class SearchResult {
}
public SearchResult[] getSearchResults() {
- results = new ArrayList();
+ results = new ArrayList<SearchResult>();
searchTerm = request.getParameter("searchWord");
IToc[] tocs = getTocs();
for (int i = 0; i < tocs.length; i++) {
@@ -47,7 +47,7 @@ public SearchResult[] getSearchResults() {
searchTopic(topics[t]);
}
}
- return (SearchResult[]) results.toArray(new SearchResult[results.size()]);
+ return results.toArray(new SearchResult[results.size()]);
}
private void searchTopic(ITopic topic) {

Back to the top