Skip to content

Commit 0c21032

Browse files
jyaneejona86
authored andcommitted
core: change retention policies to CLASS
`@Internal` and `@ExperimentalApi` annotations are not visible at compile time of application (not grpc-java) because their retention policies are `SOURCE`. So, change retention policies to `CLASS`.
1 parent 199a520 commit 0c21032

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

core/src/main/java/io/grpc/ExperimentalApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
* </ol>
3636
*/
3737
@Internal
38-
@Retention(RetentionPolicy.SOURCE)
38+
@Retention(RetentionPolicy.CLASS)
3939
@Target({
4040
ElementType.ANNOTATION_TYPE,
4141
ElementType.CONSTRUCTOR,

core/src/main/java/io/grpc/Internal.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* the public APIs do.
3333
*/
3434
@Internal
35-
@Retention(RetentionPolicy.SOURCE)
35+
@Retention(RetentionPolicy.CLASS)
3636
@Target({
3737
ElementType.ANNOTATION_TYPE,
3838
ElementType.CONSTRUCTOR,

0 commit comments

Comments
 (0)