@Documented @Retention(value=RUNTIME) @Target(value=PARAMETER) public @interface StubValue
Object
parameter. This annotation is useful to conditionally return a
default value from a method when using an Object
return type in combination with the
RuntimeType
annotation. The value is either representing
null
if a method returns a reference type or void
or a boxed primitive of the return type
representing the numeric value 0
.Copyright © 2014–2020. All rights reserved.