Skip to content

Instantly share code, notes, and snippets.

@mooman219
Created June 28, 2013 07:22
Show Gist options
  • Save mooman219/5883036 to your computer and use it in GitHub Desktop.
Save mooman219/5883036 to your computer and use it in GitHub Desktop.
public static <T> Type getCollectionType(Class<T> type) {
return new TypeToken<Collection<type>>(){}.getType();
^
|
"type cannot be resolved to a type"--+
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment