From 71fbb81b14958b80fe55738607740c6630e4e9da Mon Sep 17 00:00:00 2001 From: Neil Fuller Date: Mon, 30 Nov 2015 09:51:33 +0000 Subject: 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 --- core/java/android/annotation/IntDef.java | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'core/java/android/annotation/IntDef.java') 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. *

- * Example: - *

{@code
- *  @Retention(CLASS)
- *  @IntDef({NAVIGATION_MODE_STANDARD, NAVIGATION_MODE_LIST, NAVIGATION_MODE_TABS})
- *  public @interface NavigationMode {}
+ * 

+ *  @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();
- * }
+ *
* For a flag, set the flag attribute: - *
{@code
+ * 

  *  @IntDef(
  *      flag = true
- *      value = {NAVIGATION_MODE_STANDARD, NAVIGATION_MODE_LIST, NAVIGATION_MODE_TABS})
- * }
+ * value = {NAVIGATION_MODE_STANDARD, NAVIGATION_MODE_LIST, NAVIGATION_MODE_TABS}) + *
* * @hide */ -- cgit v1.2.3