-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
ClassName.java
28 lines (26 loc) · 1.01 KB
/
ClassName.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package org.robolectric.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Indicate a real class name of method's input parameter.
*
* <p>For some important Android framework's shadow class, we might bring new APIs to current shadow
* class, but these APIs might be added from newer SDK version, and it will cause compiling error
* when using these shadow classes with lower compileSdk. We can use this annotation and Object type
* to avoid compiling error but with implicit type checking.
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.PARAMETER})
public @interface ClassName {
/**
* The class name intended for this parameter.
*
* <p>Use the value as returned from {@link Class#getName()}, not {@link
* Class#getCanonicalName()}; e.g. {@code Foo$Bar} instead of {@code Foo.Bar}.
*/
String value() default "";
}