Annotation Type Advice.AssignReturned.AsScalar


  • @Documented
    @Retention(RUNTIME)
    @Target(METHOD)
    public static @interface Advice.AssignReturned.AsScalar
    Indicates that the advice method's return value is to be treated as a scalar value also if it is of an array type. This implies that the advice method's return value is assigned as such and not by array element.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean skipOnDefaultValue
      If false, a default value will cause an assignment.
    • Element Detail

      • skipOnDefaultValue

        boolean skipOnDefaultValue
        If false, a default value will cause an assignment. This implies that a suppressed error will cause an assignment of the default value.
        Returns:
        false, a default value will cause an assignment.
        Default:
        true