Skip to content

Commit 5754e99

Browse files
committed
Merge branch '2.11' into 2.12
2 parents 7c6c6e2 + 32e7d0e commit 5754e99

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public enum DefaultTyping {
188188

189189
/**
190190
* Value that means that default typing will be used for
191-
* all non-final types, with exception of small number of
191+
* all types, with exception of small number of
192192
* "natural" types (String, Boolean, Integer, Double) that
193193
* can be correctly inferred from JSON, and primitives (which
194194
* can not be polymorphic either).
@@ -200,7 +200,10 @@ public enum DefaultTyping {
200200
* if declared value type of a property is {@code final} -- for example,
201201
* properties of type {@code long} (or wrapper {@code Long}).
202202
*<p>
203-
* Note that the only known use case for this setting is for serialization
203+
* Note that this is rarely the option you should use as it results
204+
* in adding type information in many places where it should not be needed:
205+
* make sure you understand its behavior.
206+
* The only known use case for this setting is for serialization
204207
* when passing instances of final class, and base type is not
205208
* separately specified.
206209
*

0 commit comments

Comments
 (0)