About this question
I use Eclipse for java, this is the error is got.
Type safety: Unchecked cast from Object to HashMapNow there is another that I get from a call to an API that I have no control over returns
HashMap<String, String> getItems(javax.servlet.http.HttpSession session) {
HashMap<String, String> theHash = (HashMap<String, String>)session.getAttribute("attributeKey");
return theHash;
}
I would like to avoid Eclipse warnings, if possible. I read somewhere I could use SupressWarning to do it, what is it and how to use it?