Annotation Type WithType


  • @Target(PARAMETER)
    @Retention(RUNTIME)
    public @interface WithType
    Parameters with types that can't be resolved at compile time may be annotated @WithType.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String value
      The class name intended for this parameter.
    • Element Detail

      • value

        java.lang.String value
        The class name intended for this parameter.

        Use the value as returned from Class.getName(), not Class.getCanonicalName(); e.g. Foo$Bar instead of Foo.Bar.