diff options
| author | Neil Fuller <nfuller@google.com> | 2015-11-30 09:51:33 +0000 |
|---|---|---|
| committer | Neil Fuller <nfuller@google.com> | 2015-12-02 14:24:11 +0000 |
| commit | 71fbb81b14958b80fe55738607740c6630e4e9da (patch) | |
| tree | 1f1be8961057d82b54b99637b8e6b423ff621575 /core/java/android/annotation/IntDef.java | |
| parent | 355a74f2842b44b0ae07c5f982c50761d47d9ca0 (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.java | 19 |
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 - * @Retention(CLASS) - * @IntDef({NAVIGATION_MODE_STANDARD, NAVIGATION_MODE_LIST, NAVIGATION_MODE_TABS}) - * public @interface NavigationMode {} + * <pre><code> + * @Retention(SOURCE) + * @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(@NavigationMode int mode); + * public abstract void setNavigationMode(@NavigationMode int mode); * @NavigationMode * public abstract int getNavigationMode(); - * }</pre> + * </code></pre> * For a flag, set the flag attribute: - * <pre>{@code + * <pre><code> * @IntDef( * flag = true - * value = {NAVIGATION_MODE_STANDARD, NAVIGATION_MODE_LIST, NAVIGATION_MODE_TABS}) - * }</pre> + * value = {NAVIGATION_MODE_STANDARD, NAVIGATION_MODE_LIST, NAVIGATION_MODE_TABS}) + * </code></pre> * * @hide */ |
