From 97807479fdd80ff548f232a8dd3f04278f9fb66a Mon Sep 17 00:00:00 2001 From: Shohei Kamimori Date: Thu, 25 Jan 2018 00:28:50 +0900 Subject: [PATCH] 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`. --- core/src/main/java/io/grpc/ExperimentalApi.java | 2 +- core/src/main/java/io/grpc/Internal.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/io/grpc/ExperimentalApi.java b/core/src/main/java/io/grpc/ExperimentalApi.java index f80c03139c7..6a588d16bb6 100644 --- a/core/src/main/java/io/grpc/ExperimentalApi.java +++ b/core/src/main/java/io/grpc/ExperimentalApi.java @@ -35,7 +35,7 @@ * */ @Internal -@Retention(RetentionPolicy.SOURCE) +@Retention(RetentionPolicy.CLASS) @Target({ ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, diff --git a/core/src/main/java/io/grpc/Internal.java b/core/src/main/java/io/grpc/Internal.java index f2b453d0646..6f55c84859c 100644 --- a/core/src/main/java/io/grpc/Internal.java +++ b/core/src/main/java/io/grpc/Internal.java @@ -32,7 +32,7 @@ * the public APIs do. */ @Internal -@Retention(RetentionPolicy.SOURCE) +@Retention(RetentionPolicy.CLASS) @Target({ ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR,