Skip to content

Commit

Permalink
Bump the version of jackson-databind
Browse files Browse the repository at this point in the history
  • Loading branch information
komamitsu committed Nov 30, 2024
1 parent 84fd197 commit a4d17ee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ lazy val msgpackJackson =
"org.msgpack.jackson.dataformat"
),
libraryDependencies ++= Seq(
"com.fasterxml.jackson.core" % "jackson-databind" % "2.16.2",
"com.fasterxml.jackson.core" % "jackson-databind" % "2.18.2",
junitInterface,
"org.apache.commons" % "commons-math3" % "3.6.1" % "test"
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.introspect.Annotated;
import com.fasterxml.jackson.databind.introspect.AnnotatedClass;
import com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector;

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

return ARRAY_FORMAT;
}

/**
* Defines that unknown properties will be ignored, and won't fail the un-marshalling process.
* Happens in case of de-serialization of a payload that contains more properties than the actual
* value type
*/
@Override
public Boolean findIgnoreUnknownProperties(AnnotatedClass ac)
{
// If the entity contains JsonIgnoreProperties annotation, give it higher priority.
final Boolean precedenceIgnoreUnknownProperties = super.findIgnoreUnknownProperties(ac);
if (precedenceIgnoreUnknownProperties != null) {
return precedenceIgnoreUnknownProperties;
}

return true;
}
}

0 comments on commit a4d17ee

Please sign in to comment.