Package org.robolectric.annotation
Annotation Type ReflectorObject
-
@Documented @Retention(RUNTIME) @Target(FIELD) public @interface ReflectorObject
Serves to cache the reflector object instance and lower test runtime.For example,
@ReflectorObject MyReflector objectReflector
is equivalent to callingreflector(MyReflector.class, realObject)
.