Skip to content

Instantly share code, notes, and snippets.

@jsyeo
Created August 20, 2015 07:19
Show Gist options
  • Save jsyeo/64adf75e7c48fae843bb to your computer and use it in GitHub Desktop.
Save jsyeo/64adf75e7c48fae843bb to your computer and use it in GitHub Desktop.
Class with Unbounded Type Parameter
public class Main {
public static void main(String[] args) {
MyClass<Integer> c = new MyClass<>();
c.vulnerableMethod(1);
}
}
class MyClass<T> {
void vulnerableMethod(T t) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment