SystemService annotation: Remove import of Context
Remove import of Context to allow this annotation to be statically linked easily. Bug: 142886292 Test: compiles Change-Id: I74b02d562a9df1729e4046c7a1e6d5d8033f21e2
This commit is contained in:
@@ -19,14 +19,12 @@ package android.annotation;
|
||||
import static java.lang.annotation.ElementType.TYPE;
|
||||
import static java.lang.annotation.RetentionPolicy.SOURCE;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* Description of a system service available through
|
||||
* {@link Context#getSystemService(Class)}. This is used to auto-generate
|
||||
* {@link android.content.Context#getSystemService(Class)}. This is used to auto-generate
|
||||
* documentation explaining how to obtain a reference to the service.
|
||||
*
|
||||
* @hide
|
||||
@@ -36,9 +34,9 @@ import java.lang.annotation.Target;
|
||||
public @interface SystemService {
|
||||
/**
|
||||
* The string name of the system service that can be passed to
|
||||
* {@link Context#getSystemService(String)}.
|
||||
* {@link android.content.Context#getSystemService(String)}.
|
||||
*
|
||||
* @see Context#getSystemServiceName(Class)
|
||||
* @see android.content.Context#getSystemServiceName(Class)
|
||||
*/
|
||||
String value();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user