Created
August 20, 2015 07:19
-
-
Save jsyeo/64adf75e7c48fae843bb to your computer and use it in GitHub Desktop.
Class with Unbounded Type Parameter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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