We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b70b520 commit f72c3e0Copy full SHA for f72c3e0
src/test/java/com/fasterxml/jackson/databind/ser/filter/CurrentValueDeser4184Test.java
@@ -42,12 +42,7 @@ public String getName() {
42
static class UserTypeDeserializer extends JsonDeserializer<UserType> {
43
@Override
44
public UserType deserialize(JsonParser p, DeserializationContext ctxt) throws IOException {
45
- Object currentValue;
46
- if (p.currentToken().isStructStart()) {
47
- currentValue = p.getParsingContext().getParent().getCurrentValue();
48
- } else {
49
- currentValue = p.getParsingContext().getCurrentValue();
50
- }
+ Object currentValue = p.getParsingContext().getParent().getCurrentValue();
51
if (null == currentValue) {
52
ctxt.reportInputMismatch(UserType.class, "No currentValue() available");
53
}
0 commit comments