Skip to content

Commit 319409e

Browse files
committed
Change annotation retention to RUNTIME
To ensure that this annotation will be easily visible to users and to grant the possibility of programmatic response to launch stage, this shouldn't only be a source-retained attribute.
1 parent 676a881 commit 319409e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

google-cloud-core/src/main/java/com/google/cloud/GcpLaunchStage.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class GcpLaunchStage {
3434
* provisions). These features may be unstable, changed in backward-incompatible ways, and are not
3535
* guaranteed to be released.
3636
*/
37-
@Retention(RetentionPolicy.SOURCE)
37+
@Retention(RetentionPolicy.RUNTIME)
3838
public @interface EarlyAccess {}
3939

4040
/**
@@ -46,7 +46,7 @@ public class GcpLaunchStage {
4646
* that customers can actually use them in test environments or for limited-use tests -- just like
4747
* they would in normal production cases.
4848
*/
49-
@Retention(RetentionPolicy.SOURCE)
49+
@Retention(RetentionPolicy.RUNTIME)
5050
public @interface Alpha {}
5151

5252
/**
@@ -55,7 +55,7 @@ public class GcpLaunchStage {
5555
* cases. Products will be complete from a feature perspective, but may have some open outstanding
5656
* issues. Beta releases are suitable for limited production use cases.
5757
*/
58-
@Retention(RetentionPolicy.SOURCE)
58+
@Retention(RetentionPolicy.RUNTIME)
5959
public @interface Beta {}
6060

6161
/**
@@ -64,7 +64,7 @@ public class GcpLaunchStage {
6464
* and the <a href="https://cloud.google.com/terms/deprecation">Google Cloud Platform Subject to the Deprecation Policy</a>
6565
* documentation.
6666
*/
67-
@Retention(RetentionPolicy.SOURCE)
67+
@Retention(RetentionPolicy.RUNTIME)
6868
public @interface Deprecated {}
6969

7070
private GcpLaunchStage() {

0 commit comments

Comments
 (0)