I have a method call that parses a string and the second argument to the parse method is the type that it will return. To parse a Person, we use:
Person p = myParser.parse("name=Mike", Person.class);
This works great, and this works too for lists:
List<Person> lop = myParser.parse(somestring, List.class);
However, that gives me a compiler warning because what I really want is List<Person>.class, but I can't figure out the syntax.
How do I do that?