Skip to content

Commit 334093b

Browse files
committed
Added nullability for ease of implementation
1 parent 58e2445 commit 334093b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main/java/io/github/projectmapk/jackson/module/kogera/deser/WrapsNullableValueClassDeserializer.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
package io.github.projectmapk.jackson.module.kogera.deser;
22

3+
import com.fasterxml.jackson.core.JacksonException;
4+
import com.fasterxml.jackson.core.JsonParser;
5+
import com.fasterxml.jackson.databind.DeserializationContext;
36
import com.fasterxml.jackson.databind.JavaType;
47
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
58
import io.github.projectmapk.jackson.module.kogera.deser.deserializers.WrapsNullableValueClassBoxDeserializer;
@@ -8,6 +11,8 @@
811
import org.jetbrains.annotations.NotNull;
912
import org.jetbrains.annotations.Nullable;
1013

14+
import java.io.IOException;
15+
1116
/**
1217
* An interface to be inherited by JsonDeserializer that handles value classes that may wrap nullable.
1318
* @see WrapsNullableValueClassBoxDeserializer for implementation.
@@ -44,4 +49,8 @@ public final Class<D> handledType() {
4449
// It is defined so that null can also be returned so that Nulls.SKIP can be applied.
4550
@Nullable
4651
public abstract D getBoxedNullValue();
52+
53+
@Override
54+
public abstract D deserialize(@NotNull JsonParser p, @NotNull DeserializationContext ctxt)
55+
throws IOException, JacksonException;
4756
}

0 commit comments

Comments
 (0)