summaryrefslogtreecommitdiff
path: root/core/java/android/annotation/IntDef.java
diff options
context:
space:
mode:
authorNeil Fuller <nfuller@google.com>2015-11-30 09:51:33 +0000
committerNeil Fuller <nfuller@google.com>2015-12-02 14:24:11 +0000
commit71fbb81b14958b80fe55738607740c6630e4e9da (patch)
tree1f1be8961057d82b54b99637b8e6b423ff621575 /core/java/android/annotation/IntDef.java
parent355a74f2842b44b0ae07c5f982c50761d47d9ca0 (diff)
Fix @code escapes
The body of {@code} must not be HTML escaped. This is one of several changes that fix the source in conjunction with a doclava fix. Bug: 25757239 Change-Id: Ib38a0fa2dd2a3d68e467f78a812071e763d7e881
Diffstat (limited to 'core/java/android/annotation/IntDef.java')
-rw-r--r--core/java/android/annotation/IntDef.java19
1 files changed, 9 insertions, 10 deletions
diff --git a/core/java/android/annotation/IntDef.java b/core/java/android/annotation/IntDef.java
index 3cae9c522829..a18bfa5a5702 100644
--- a/core/java/android/annotation/IntDef.java
+++ b/core/java/android/annotation/IntDef.java
@@ -27,25 +27,24 @@ import static java.lang.annotation.RetentionPolicy.CLASS;
* named constants. If the {@link #flag()} attribute is set to true,
* multiple constants can be combined.
* <p>
- * Example:
- * <pre>{@code
- * &#64;Retention(CLASS)
- * &#64;IntDef(&#123;NAVIGATION_MODE_STANDARD, NAVIGATION_MODE_LIST, NAVIGATION_MODE_TABS&#125;)
- * public &#64;interface NavigationMode &#123;&#125;
+ * <pre><code>
+ * &#64;Retention(SOURCE)
+ * &#64;IntDef({NAVIGATION_MODE_STANDARD, NAVIGATION_MODE_LIST, NAVIGATION_MODE_TABS})
+ * public @interface NavigationMode {}
* public static final int NAVIGATION_MODE_STANDARD = 0;
* public static final int NAVIGATION_MODE_LIST = 1;
* public static final int NAVIGATION_MODE_TABS = 2;
* ...
- * public abstract void setNavigationMode(&#64;NavigationMode int mode);
+ * public abstract void setNavigationMode(@NavigationMode int mode);
* &#64;NavigationMode
* public abstract int getNavigationMode();
- * }</pre>
+ * </code></pre>
* For a flag, set the flag attribute:
- * <pre>{@code
+ * <pre><code>
* &#64;IntDef(
* flag = true
- * value = &#123;NAVIGATION_MODE_STANDARD, NAVIGATION_MODE_LIST, NAVIGATION_MODE_TABS&#125;)
- * }</pre>
+ * value = {NAVIGATION_MODE_STANDARD, NAVIGATION_MODE_LIST, NAVIGATION_MODE_TABS})
+ * </code></pre>
*
* @hide
*/