summaryrefslogtreecommitdiff
path: root/core/java/android/annotation/StringDef.java
Commit message (Collapse)AuthorAgeFilesLines
* Remove annotations that have been relocatedChris Wailes2021-04-261-56/+0
| | | | | | | | | These annotations have been relocated to frameworks/libs/modules-utils. This CL removes the files and updates necessary build rules. Bug: 183133670 Test: m Change-Id: I834b9f5320e0b6fe8cb9feb7194c82085b805e07
* Add auto-doc support for @StringDef.Jeff Sharkey2017-12-081-0/+5
| | | | | | | | | Behaves pretty much the same as @IntDef, but now supports "suffix" in addition to "prefix" when matching constants. Test: manual docs output looks sane Bug: 70406696 Change-Id: I35064b0f9f36f1f13ccdb40302d818a004014f15
* @IntDef and @StringDef must have source retentionTor Norbye2017-05-121-2/+2
| | | | | | | | | | | They reference constant references, not constant values, and this cannot be expressed in the .class file for annotations; the data is instead extracted at build time into external annotation data files. Test: Manual Change-Id: I06b366ba8815d1da40e6cbf906ebae09899c1b8e
* Fix @code escapesNeil Fuller2015-12-021-6/+6
| | | | | | | | | 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
* Remove unused imports from frameworks/base.John Spurlock2013-11-201-4/+0
| | | | Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
* Add @NotNull, @Nullable, and @IntDef/@StringDef annotationsTor Norbye2013-08-151-0/+55
This changeset adds some annotations for recording whether a method return value or method parameter can be null (@Nullable), can never be null (@NotNull), or must be an integer enum or flag using one of the given constants. Change-Id: Ic932592ea3bac781c1df364447c57042461333c5