diff options
| author | Android Build Merger (Role) <noreply-android-build-merger@google.com> | 2019-12-04 22:45:48 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-12-04 22:45:48 +0000 |
| commit | 352c7c78d50b3221abf89a4338aa6a4f9a54acc1 (patch) | |
| tree | 76bbda82bb608b7a27ea2f563d09f8cac037e410 /core/java | |
| parent | 2e9f938298914f5c9982b0fef34940eed5ae510b (diff) | |
| parent | 8899e8f1742b850f3faa44269b6417ff2d7457de (diff) | |
Merge "Merge "Handle overrideSourcePosition in unsupportedappusageprocessor." am: 168c609085 am: be7b380039 am: 271ca11abe"
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/annotation/UnsupportedAppUsage.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/java/android/annotation/UnsupportedAppUsage.java b/core/java/android/annotation/UnsupportedAppUsage.java index 204d71d93cd8..1af48cb63079 100644 --- a/core/java/android/annotation/UnsupportedAppUsage.java +++ b/core/java/android/annotation/UnsupportedAppUsage.java @@ -148,6 +148,18 @@ public @interface UnsupportedAppUsage { String publicAlternatives() default ""; /** + * Override the default source position when generating an index of the annotations. + * + * <p>This is intended for use by tools that generate java source code, to point to the + * original source position of the annotation, rather than the position within the generated + * code. It should never be set manually. + * + * <p>The format of the value is "path/to/file:startline:startcol:endline:endcol" indicating + * the position of the annotation itself. + */ + String overrideSourcePosition() default ""; + + /** * Container for {@link UnsupportedAppUsage} that allows it to be applied repeatedly to types. */ @Retention(CLASS) |
