Skip to content

Commit 1113e9b

Browse files
committed
Merge branch '2.12'
2 parents 5bca846 + 1d80cb6 commit 1113e9b

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

release-notes/VERSION-2.x

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Project: jackson-databind
1919
#2683: Explicitly fail (de)serialization of `java.time.*` types in absence of
2020
registered custom (de)serializers
2121
#2707: Improve description included in by `DeserializationContext.handleUnexpectedToken()`
22+
- Add `BeanDeserializerBase.isCaseInsensitive()`
2223

2324
2.11.1 (not yet released)
2425

src/main/java/com/fasterxml/jackson/databind/deser/BeanDeserializerBase.java

+13
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,19 @@ public Object getEmptyValue(DeserializationContext ctxt) throws JsonMappingExcep
968968
@Override
969969
public boolean isCachable() { return true; }
970970

971+
/**
972+
* Accessor for checking whether this deserializer is operating
973+
* in case-insensitive manner.
974+
*
975+
* @return True if this deserializer should match property names without
976+
* considering casing; false if case has to match exactly.
977+
*
978+
* @since 2.12
979+
*/
980+
public boolean isCaseInsensitive() {
981+
return _beanProperties.isCaseInsensitive();
982+
}
983+
971984
@Override // since 2.9
972985
public Boolean supportsUpdate(DeserializationConfig config) {
973986
// although with possible caveats, yes, values can be updated

0 commit comments

Comments
 (0)