diff --git a/README.md b/README.md index 78531402e..a332f0b45 100644 --- a/README.md +++ b/README.md @@ -1287,8 +1287,7 @@ They are checked in order, and the first one found is used: Jackson will force a sizable (> 1 MB) dependency to an Android application thus increasing the app download size for mobile users. -If you want to use POJOs and a JSON-B compliant specification _**or**_ you want to use JJWT on a JakartaEE compliant application server, use -`io.jsonwebtoken:jjwt-jsonb`. +If you want to use POJOs and a JSON-B compliant specification _**or**_ you want to use JJWT on a JakartaEE compliant application server, use `io.jsonwebtoken:jjwt-jsonb`. ### Custom JSON Processor diff --git a/extensions/jsonb/src/main/java/io/jsonwebtoken/jsonb/io/JsonbDeserializer.java b/extensions/jsonb/src/main/java/io/jsonwebtoken/jsonb/io/JsonbDeserializer.java index 53bfabb70..6d75b572c 100644 --- a/extensions/jsonb/src/main/java/io/jsonwebtoken/jsonb/io/JsonbDeserializer.java +++ b/extensions/jsonb/src/main/java/io/jsonwebtoken/jsonb/io/JsonbDeserializer.java @@ -25,7 +25,7 @@ import static java.util.Objects.requireNonNull; /** - * @since 0.10.0 + * @since JJWT_RELEASE_VERSION */ public class JsonbDeserializer implements Deserializer { diff --git a/extensions/jsonb/src/main/java/io/jsonwebtoken/jsonb/io/JsonbSerializer.java b/extensions/jsonb/src/main/java/io/jsonwebtoken/jsonb/io/JsonbSerializer.java index 25b949ada..0c4cd8d0e 100644 --- a/extensions/jsonb/src/main/java/io/jsonwebtoken/jsonb/io/JsonbSerializer.java +++ b/extensions/jsonb/src/main/java/io/jsonwebtoken/jsonb/io/JsonbSerializer.java @@ -28,7 +28,7 @@ import static java.util.Objects.requireNonNull; /** - * @since 0.10.0 + * @since JJWT_RELEASE_VERSION */ public class JsonbSerializer implements Serializer { @@ -49,7 +49,7 @@ public JsonbSerializer(Jsonb jsonb) { @Override public byte[] serialize(T t) throws SerializationException { - Assert.notNull(t, "Object to serialize cannot be null."); + requireNonNull(t, "Object to serialize cannot be null."); try { return writeValueAsBytes(t); } catch (JsonbException jsonbException) { diff --git a/extensions/pom.xml b/extensions/pom.xml index 52cc61316..031139012 100644 --- a/extensions/pom.xml +++ b/extensions/pom.xml @@ -37,6 +37,17 @@ jackson orgjson gson - jsonb + + + + java8 + + [8,) + + + jsonb + + +