@Target(PARAMETER) @Retention(RUNTIME) public @interface WithType
String
value
String value
Use the value as returned from Class.getName(), not Class.getCanonicalName(); e.g. Foo$Bar instead of Foo.Bar.
Class.getName()
Class.getCanonicalName()
Foo$Bar
Foo.Bar