aboutsummaryrefslogtreecommitdiffstats
path: root/annotations
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@verizonmedia.com>2021-12-03 13:54:35 +0100
committerBjørn Christian Seime <bjorncs@verizonmedia.com>2021-12-03 14:06:05 +0100
commit0cd340dc4646b397d84cfab38a8337bc7bdcaa4f (patch)
tree8012bf46eab169059317b8b4daa42b5898f68e55 /annotations
parent76a3908ea1d3475d36a7b2d15b867a18d7952862 (diff)
Add custom `@Beta` annotation
Replace use of Guava's `com.google.common.annotations.Beta` with custom annotation.
Diffstat (limited to 'annotations')
-rw-r--r--annotations/src/main/java/com/yahoo/api/annotations/Beta.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/annotations/src/main/java/com/yahoo/api/annotations/Beta.java b/annotations/src/main/java/com/yahoo/api/annotations/Beta.java
new file mode 100644
index 00000000000..c555fbbcb57
--- /dev/null
+++ b/annotations/src/main/java/com/yahoo/api/annotations/Beta.java
@@ -0,0 +1,23 @@
+// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+package com.yahoo.api.annotations;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * Signifies that the annotated Java type/method/constructor is under development and may still change before they stabilize.
+ * Should only be used on a type that part of a package annotated with {@link PublicApi}.
+ *
+ * @see <a href="https://docs.vespa.ai/en/vespa-versions.html">https://docs.vespa.ai/en/vespa-versions.html</a>
+ *
+ * @author bjorncs
+ */
+@Retention(RetentionPolicy.CLASS)
+@Target({
+ ElementType.CONSTRUCTOR,
+ ElementType.METHOD,
+ ElementType.TYPE
+})
+public @interface Beta {}