Prev Next

Java / Generics

How can you suppress unchecked warning in Java ?

using @SuppressWarnings("unchecked") annotation.

@SuppressWarnings("unchecked")
List<String> myList = new ArrayList();

More Related questions...

Show more question and Answers...


Comments & Discussions