summaryrefslogtreecommitdiff
path: root/core/java/android/annotation/MainThread.java
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2017-04-21 16:29:27 -0600
committerJeff Sharkey <jsharkey@android.com>2017-04-21 16:35:08 -0600
commit910e081216ac530432ac9d0aab10d5e5e4c73ab8 (patch)
treed3c1c65d39a11fc3b446bf1534773ae8c46c6263 /core/java/android/annotation/MainThread.java
parentfaf37babb0bc0962c01750b222fc03bd197b0b62 (diff)
More auto-doc work.
Add support for AnyThread, CallSuper, and UiThread. Another related CL started documenting @RequiresPermission, so remove duplicated information in existing APIs. Suppress auto-doc on a handful of classes that are already well-documented. Test: make -j32 offline-sdk-docs Bug: 37526420 Change-Id: I791437dccec0f11d5349a23b982ba098cb551af8
Diffstat (limited to 'core/java/android/annotation/MainThread.java')
-rw-r--r--core/java/android/annotation/MainThread.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/java/android/annotation/MainThread.java b/core/java/android/annotation/MainThread.java
index c6ac30c5c5da..d15cfcd94ba7 100644
--- a/core/java/android/annotation/MainThread.java
+++ b/core/java/android/annotation/MainThread.java
@@ -15,9 +15,6 @@
*/
package android.annotation;
-import java.lang.annotation.Retention;
-import java.lang.annotation.Target;
-
import static java.lang.annotation.ElementType.CONSTRUCTOR;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
@@ -25,6 +22,9 @@ import static java.lang.annotation.RetentionPolicy.SOURCE;
import android.os.Looper;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
/**
* Denotes that the annotated method should only be called on the main thread.
* If the annotated element is a class, then all methods in the class should be