aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/eu
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2021-12-17 06:02:11 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2021-12-17 06:02:11 +0100
commit25b7f9082b5cccf437c122a8ba13f0732a784a41 (patch)
tree08a05184f5de4ded89a28f3bb343a20fa79b28ef /src/main/java/eu
parent5803c9a743ba03507c097c3feb377d81de137231 (diff)
Use API Guardian annotations.
Change-Id: Icfd30e9b06e5c7ee9f51c6879bfe4978a6f44600
Diffstat (limited to 'src/main/java/eu')
-rw-r--r--src/main/java/eu/mulk/jgvariant/core/Decoder.java3
-rw-r--r--src/main/java/eu/mulk/jgvariant/core/Signature.java3
-rw-r--r--src/main/java/eu/mulk/jgvariant/core/Variant.java4
3 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/eu/mulk/jgvariant/core/Decoder.java b/src/main/java/eu/mulk/jgvariant/core/Decoder.java
index d0c0323..d30366e 100644
--- a/src/main/java/eu/mulk/jgvariant/core/Decoder.java
+++ b/src/main/java/eu/mulk/jgvariant/core/Decoder.java
@@ -12,6 +12,8 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Optional;
+import org.apiguardian.api.API;
+import org.apiguardian.api.API.Status;
import org.jetbrains.annotations.Nullable;
/**
@@ -42,6 +44,7 @@ import org.jetbrains.annotations.Nullable;
* @param <T> the type that the {@link Decoder} can decode.
*/
@SuppressWarnings("java:S1610")
+@API(status = Status.EXPERIMENTAL)
public abstract class Decoder<T> {
private Decoder() {}
diff --git a/src/main/java/eu/mulk/jgvariant/core/Signature.java b/src/main/java/eu/mulk/jgvariant/core/Signature.java
index bb03b94..d9de5f1 100644
--- a/src/main/java/eu/mulk/jgvariant/core/Signature.java
+++ b/src/main/java/eu/mulk/jgvariant/core/Signature.java
@@ -6,6 +6,8 @@ import java.text.ParseException;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
+import org.apiguardian.api.API;
+import org.apiguardian.api.API.Status;
/**
* A GVariant signature string.
@@ -24,6 +26,7 @@ import java.util.Objects;
* an array of 32-bit integers
* </dl>
*/
+@API(status = Status.STABLE)
public final class Signature {
private final String signatureString;
diff --git a/src/main/java/eu/mulk/jgvariant/core/Variant.java b/src/main/java/eu/mulk/jgvariant/core/Variant.java
index 134a5e8..1438d9d 100644
--- a/src/main/java/eu/mulk/jgvariant/core/Variant.java
+++ b/src/main/java/eu/mulk/jgvariant/core/Variant.java
@@ -1,5 +1,8 @@
package eu.mulk.jgvariant.core;
+import org.apiguardian.api.API;
+import org.apiguardian.api.API.Status;
+
/**
* A dynamically typed GVariant value carrying a {@link Signature} describing its type.
*
@@ -23,4 +26,5 @@ package eu.mulk.jgvariant.core;
* Integer}, {@link Long}, {@link String}, {@link java.util.Optional}, {@link java.util.List},
* {@link Object[]}, {@link Variant}.
*/
+@API(status = Status.EXPERIMENTAL)
public record Variant(Signature signature, Object value) {}