Unchecked Exception( -Xlint)
posted 5 years ago
That's because List is a generic type, but you aren't using generics. If you change List to List<String> everywhere the warnings will go away. Remember they're only warnings...but you should always use the generic version (unless you have to work with legacy libraries that don't).