Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7f528b9a authored by David Su's avatar David Su
Browse files

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
parent 369c9205
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -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();
}