Skip to content

Commit f72c3e0

Browse files
committed
test cleanup
1 parent b70b520 commit f72c3e0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/test/java/com/fasterxml/jackson/databind/ser/filter/CurrentValueDeser4184Test.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,7 @@ public String getName() {
4242
static class UserTypeDeserializer extends JsonDeserializer<UserType> {
4343
@Override
4444
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-
}
45+
Object currentValue = p.getParsingContext().getParent().getCurrentValue();
5146
if (null == currentValue) {
5247
ctxt.reportInputMismatch(UserType.class, "No currentValue() available");
5348
}

0 commit comments

Comments
 (0)