Skip to content

Commit 32e7d0e

Browse files
committed
Minor javadoc improvement wrt default typing EVERYTHING
1 parent 3e964e2 commit 32e7d0e

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,13 +188,16 @@ 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). Typing is also enabled for
195195
* all array types.
196196
*<p>
197-
* Note that the only known use case for this setting is for serialization
197+
* Note that this is rarely the option you should use as it results
198+
* in adding type information in many places where it should not be needed:
199+
* make sure you understand its behavior.
200+
* The only known use case for this setting is for serialization
198201
* when passing instances of final class, and base type is not
199202
* separately specified.
200203
*

0 commit comments

Comments
 (0)