File tree 2 files changed +7
-6
lines changed
src/main/java/com/fasterxml/jackson/databind/deser/impl
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import com .fasterxml .jackson .databind .*;
4
4
import com .fasterxml .jackson .databind .deser .NullValueProvider ;
5
- import com .fasterxml .jackson .databind .exc .InvalidNullException ;
6
5
import com .fasterxml .jackson .databind .util .AccessPattern ;
7
6
8
7
/**
9
- * Simple {@link NullValueProvider} that will always throw a
10
- * {@link InvalidNullException} when a null is encountered .
8
+ * Simple {@link NullValueProvider} that will return "empty value"
9
+ * specified by {@link JsonDeserializer} provider is constructed with .
11
10
*/
12
11
public class NullsAsEmptyProvider
13
12
implements NullValueProvider , java .io .Serializable
Original file line number Diff line number Diff line change 2
2
3
3
import com .fasterxml .jackson .databind .*;
4
4
import com .fasterxml .jackson .databind .deser .NullValueProvider ;
5
- import com .fasterxml .jackson .databind .exc .InvalidNullException ;
6
5
import com .fasterxml .jackson .databind .util .AccessPattern ;
7
6
8
7
/**
9
- * Simple {@link NullValueProvider} that will always throw a
10
- * {@link InvalidNullException} when a null is encountered.
8
+ * Simple {@link NullValueProvider} that will simply return given
9
+ * constant value when a null is encountered; or, with a specially
10
+ * constructed instance (see {@link #skipper}, indicate the need
11
+ * for special behavior of skipping property altogether (not setting
12
+ * as anything OR throwing exception).
11
13
*/
12
14
public class NullsConstantProvider
13
15
implements NullValueProvider , java .io .Serializable
You can’t perform that action at this time.
0 commit comments