Posts Tagged ‘warnings’

Suppress Eclipse Warnings Annotation

Tuesday, November 17th, 2009
No Gravatar

When I search for something too many times, I try to remember to post it here.  So, to drop the warnings for type safety when you know all is fine, you can do the following:

@SuppressWarnings(“unchecked”)
List<CustomerBean>    customers    = (List<CustomerBean>)session.getAttribute(CSRD_CONTACT_LIST);

  • Share/Bookmark