diff options
-rw-r--r-- | api-guidelines/framework.md | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/api-guidelines/framework.md b/api-guidelines/framework.md index 5464a53..6e879fb 100644 --- a/api-guidelines/framework.md +++ b/api-guidelines/framework.md @@ -182,13 +182,12 @@ APIs themselves, the compiler inlines the constants and only the (now useless) values remain in the annotation's API stub (for the platform) or JAR (for libraries). -As such, usages of these annotations must be marked `@hide` in the platform or -`@hide` and `RestrictTo.Scope.LIBRARY)` in libraries. They must be marked -`@Retention(RetentionPolicy.SOURCE)` in both cases to ensure they do not appear -in API stubs or JARs. +As such, usages of these annotations must be marked with the `@hide` docs +annotation in the platform or `@RestrictTo.Scope.LIBRARY)` code annotation in +libraries. They must be marked `@Retention(RetentionPolicy.SOURCE)` in both +cases to ensure they do not appear in API stubs or JARs. ```java -/** @hide */ @RestrictTo(RestrictTo.Scope.LIBRARY) @Retention(RetentionPolicy.SOURCE) @IntDef({ @@ -346,4 +345,4 @@ best-practices that should be considered: `ACTION_MEDIA_BUTTON` uses this design to focus on the current app handling playback controls. * If possible, define your broadcast as a `<protected-broadcast>` to ensure - that malicious apps can't impersonate the OS.
\ No newline at end of file + that malicious apps can't impersonate the OS. |