FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Updating docs of stability/visibility annotations (#17) · googleapis/api-common-java@2742bf6 · GitHub

This repository was archived by the owner on Sep 27, 2023. It is now read-only.
/ api-common-java Public archive

Commit 2742bf6

Browse files
Updating docs of stability/visibility annotations (#17)
1 parent b52e256 commit 2742bf6

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

‎src/main/java/com/google/api/core/BetaApi.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
* <p>
4444
* Usage guidelines:
4545
* <ol>
46-
* <li>This annotation is used only on public APIs. Internal interfaces should not use it.</li>
46+
* <li>This annotation is used only on APIs with public visibility. Internal interfaces should
47+
* not use it.</li>
4748
* <li>This annotation should only be added to new APIs. Adding it to an existing API is considered
4849
* API-breaking.</li>
4950
* <li>Removing this annotation from an API gives it stable status.</li>

‎src/main/java/com/google/api/core/InternalApi.java‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,13 @@
3737
import java.lang.annotation.Target;
3838

3939
/**
40-
* Annotates a program element (class, method, package etc) which is internal to GAX, not part of
41-
* the public API, and should not be used by users of GAX.
40+
* Annotates a program element (class, method, package etc) which is internal to its
41+
* containing library, not part of the public API, and should not be used by users of
42+
* the library.
43+
*
44+
* This annotation should be used only on APIs with public visibility. Its existence
45+
* is necessary because Java does not have a visibility level for code within a
46+
* compilation unit.
4247
*/
4348
@BetaApi
4449
@Retention(RetentionPolicy.SOURCE)

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL