aboutsummaryrefslogtreecommitdiff
path: root/jgvariant-ostree/src
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2024-07-20 10:52:54 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2024-07-20 10:52:54 +0200
commit15456c86a45c7871d8a217e985d099c02149aa7a (patch)
tree74e9b59bccba073deafa02b5d4cd16e1f6405d93 /jgvariant-ostree/src
parent4303ab30234d290874ded1846e33c48bc651c513 (diff)
Switch from JetBrains annotations to JSpecify.
Change-Id: Ia04b52c36f9779ab15e688e0dd7434644b3a3f7f
Diffstat (limited to 'jgvariant-ostree/src')
-rw-r--r--jgvariant-ostree/src/main/java/eu/mulk/jgvariant/ostree/ByteString.java2
-rw-r--r--jgvariant-ostree/src/main/java/eu/mulk/jgvariant/ostree/package-info.java2
-rw-r--r--jgvariant-ostree/src/main/java/module-info.java4
3 files changed, 7 insertions, 1 deletions
diff --git a/jgvariant-ostree/src/main/java/eu/mulk/jgvariant/ostree/ByteString.java b/jgvariant-ostree/src/main/java/eu/mulk/jgvariant/ostree/ByteString.java
index 3bd8b25..f9309b9 100644
--- a/jgvariant-ostree/src/main/java/eu/mulk/jgvariant/ostree/ByteString.java
+++ b/jgvariant-ostree/src/main/java/eu/mulk/jgvariant/ostree/ByteString.java
@@ -10,7 +10,7 @@ import java.util.Base64;
import java.util.HexFormat;
import java.util.stream.IntStream;
import java.util.stream.Stream;
-import org.jetbrains.annotations.Nullable;
+import org.jspecify.annotations.Nullable;
/**
* A wrapper for a {@code byte[]} that implements {@link #equals(Object)}, {@link #hashCode()}, and
diff --git a/jgvariant-ostree/src/main/java/eu/mulk/jgvariant/ostree/package-info.java b/jgvariant-ostree/src/main/java/eu/mulk/jgvariant/ostree/package-info.java
index 858a748..63988ce 100644
--- a/jgvariant-ostree/src/main/java/eu/mulk/jgvariant/ostree/package-info.java
+++ b/jgvariant-ostree/src/main/java/eu/mulk/jgvariant/ostree/package-info.java
@@ -116,7 +116,9 @@
* </dl>
*/
@API(status = Status.EXPERIMENTAL)
+@NullMarked
package eu.mulk.jgvariant.ostree;
import org.apiguardian.api.API;
import org.apiguardian.api.API.Status;
+import org.jspecify.annotations.NullMarked;
diff --git a/jgvariant-ostree/src/main/java/module-info.java b/jgvariant-ostree/src/main/java/module-info.java
index cd5f78c..201901c 100644
--- a/jgvariant-ostree/src/main/java/module-info.java
+++ b/jgvariant-ostree/src/main/java/module-info.java
@@ -2,6 +2,8 @@
//
// SPDX-License-Identifier: LGPL-3.0-or-later
+import org.jspecify.annotations.NullMarked;
+
/**
* {@link eu.mulk.jgvariant.core.Decoder} instances for OSTree repositories.
*
@@ -78,6 +80,7 @@
* }
* }
*/
+@NullMarked
module eu.mulk.jgvariant.ostree {
requires transitive eu.mulk.jgvariant.core;
@@ -86,6 +89,7 @@ module eu.mulk.jgvariant.ostree {
requires static com.google.errorprone.annotations;
requires static org.apiguardian.api;
requires static org.jetbrains.annotations;
+ requires static org.jspecify;
exports eu.mulk.jgvariant.ostree;
}