Unchecked Warnings
I'm writing a web application using a proprietary Java 1.4 based content management API. When I'm working with Collections, Lists, etc. I get unchecked warnings. Here's an example:
/*
* References to generic type List<E> should be parameterized.
*/
List searchResults = searchAPI.search(WebUtils.getPropsWithDate(), getSCSContext(),"dDocName LIKE " +"\'" + contentId +"\'", 20).getResults();
/*
* The expression of type List needs unchecked conversion to conform to
* List<ISCSActiveSearchResult>
*/
List<ISCSActiveSearchResult> searchResults = searchAPI.search(WebUtils.getPropsWithDate(), getSCSContext(),"dDocName LIKE " +"\'" + contentId +"\'", 20).getResults();
I know I can use the @SuppressWarnings("unchecked") annotation but I'd rather just write warning free code if possible.
I apologize if this is rather basic but I haven't had much luck finding a solution. Anything help is greatly appreciated!

