1 package org.robolectric.annotation; 2 3 import java.lang.annotation.Documented; 4 import java.lang.annotation.ElementType; 5 import java.lang.annotation.Retention; 6 import java.lang.annotation.RetentionPolicy; 7 import java.lang.annotation.Target; 8 9 /** 10 * Indicates that a method declaration is intended to shadow a method with the same signature 11 * on the associated Android class. 12 */ 13 @Documented 14 @Retention(RetentionPolicy.RUNTIME) 15 @Target({ElementType.METHOD}) 16 public @interface Implementation { 17 /** 18 * The annotated shadow method will be invoked only for the specified SDK or greater. 19 */ 20 int minSdk() default -1; 21 22 /** 23 * The annotated shadow method will be invoked only for the specified SDK or lesser. 24 */ 25 int maxSdk() default -1; 26 } 27