Skip to content

Commit 5161c53

Browse files
authored
Bump the version of jackson-databind (#858)
1 parent 84fd197 commit 5161c53

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

build.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ lazy val msgpackJackson =
109109
"org.msgpack.jackson.dataformat"
110110
),
111111
libraryDependencies ++= Seq(
112-
"com.fasterxml.jackson.core" % "jackson-databind" % "2.16.2",
112+
"com.fasterxml.jackson.core" % "jackson-databind" % "2.18.2",
113113
junitInterface,
114114
"org.apache.commons" % "commons-math3" % "3.6.1" % "test"
115115
),

msgpack-jackson/src/main/java/org/msgpack/jackson/dataformat/JsonArrayFormat.java

-18
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import com.fasterxml.jackson.annotation.JsonFormat;
44
import com.fasterxml.jackson.databind.introspect.Annotated;
5-
import com.fasterxml.jackson.databind.introspect.AnnotatedClass;
65
import com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector;
76

87
import static com.fasterxml.jackson.annotation.JsonFormat.Shape.ARRAY;
@@ -33,21 +32,4 @@ public JsonFormat.Value findFormat(Annotated ann)
3332

3433
return ARRAY_FORMAT;
3534
}
36-
37-
/**
38-
* Defines that unknown properties will be ignored, and won't fail the un-marshalling process.
39-
* Happens in case of de-serialization of a payload that contains more properties than the actual
40-
* value type
41-
*/
42-
@Override
43-
public Boolean findIgnoreUnknownProperties(AnnotatedClass ac)
44-
{
45-
// If the entity contains JsonIgnoreProperties annotation, give it higher priority.
46-
final Boolean precedenceIgnoreUnknownProperties = super.findIgnoreUnknownProperties(ac);
47-
if (precedenceIgnoreUnknownProperties != null) {
48-
return precedenceIgnoreUnknownProperties;
49-
}
50-
51-
return true;
52-
}
5335
}

0 commit comments

Comments
 (0)