@@ -299,7 +299,7 @@ public Jackson2ObjectMapperBuilder filters(FilterProvider filters) {
299
299
* @param mixinSource class (or interface) whose annotations are to be "added"
300
300
* to target's annotations as value
301
301
* @since 4.1.2
302
- * @see com.fasterxml.jackson.databind.ObjectMapper#addMixInAnnotations (Class, Class)
302
+ * @see com.fasterxml.jackson.databind.ObjectMapper#addMixIn (Class, Class)
303
303
*/
304
304
public Jackson2ObjectMapperBuilder mixIn (Class <?> target , Class <?> mixinSource ) {
305
305
this .mixIns .put (target , mixinSource );
@@ -308,11 +308,11 @@ public Jackson2ObjectMapperBuilder mixIn(Class<?> target, Class<?> mixinSource)
308
308
309
309
/**
310
310
* Add mix-in annotations to use for augmenting specified class or interface.
311
- * @param mixIns Map of entries with target classes (or interface) whose annotations
311
+ * @param mixIns a Map of entries with target classes (or interface) whose annotations
312
312
* to effectively override as key and mix-in classes (or interface) whose
313
313
* annotations are to be "added" to target's annotations as value.
314
314
* @since 4.1.2
315
- * @see com.fasterxml.jackson.databind.ObjectMapper#addMixInAnnotations (Class, Class)
315
+ * @see com.fasterxml.jackson.databind.ObjectMapper#addMixIn (Class, Class)
316
316
*/
317
317
public Jackson2ObjectMapperBuilder mixIns (Map <Class <?>, Class <?>> mixIns ) {
318
318
this .mixIns .putAll (mixIns );
@@ -337,8 +337,8 @@ public Jackson2ObjectMapperBuilder serializers(JsonSerializer<?>... serializers)
337
337
338
338
/**
339
339
* Configure a custom serializer for the given type.
340
- * @see #serializers(JsonSerializer...)
341
340
* @since 4.1.2
341
+ * @see #serializers(JsonSerializer...)
342
342
*/
343
343
public Jackson2ObjectMapperBuilder serializerByType (Class <?> type , JsonSerializer <?> serializer ) {
344
344
this .serializers .put (type , serializer );
@@ -482,6 +482,8 @@ public Jackson2ObjectMapperBuilder featuresToDisable(Object... featuresToDisable
482
482
483
483
/**
484
484
* Specify one or more modules to be registered with the {@link ObjectMapper}.
485
+ * Multiple invocations are not additive, the last one defines the modules to
486
+ * register.
485
487
* <p>Note: If this is set, no finding of modules is going to happen - not by
486
488
* Jackson, and not by Spring either (see {@link #findModulesViaServiceLoader}).
487
489
* As a consequence, specifying an empty list here will suppress any kind of
@@ -497,6 +499,8 @@ public Jackson2ObjectMapperBuilder modules(Module... modules) {
497
499
498
500
/**
499
501
* Set a complete list of modules to be registered with the {@link ObjectMapper}.
502
+ * Multiple invocations are not additive, the last one defines the modules to
503
+ * register.
500
504
* <p>Note: If this is set, no finding of modules is going to happen - not by
501
505
* Jackson, and not by Spring either (see {@link #findModulesViaServiceLoader}).
502
506
* As a consequence, specifying an empty list here will suppress any kind of
@@ -514,6 +518,8 @@ public Jackson2ObjectMapperBuilder modules(List<Module> modules) {
514
518
515
519
/**
516
520
* Specify one or more modules to be registered with the {@link ObjectMapper}.
521
+ * Multiple invocations are not additive, the last one defines the modules
522
+ * to register.
517
523
* <p>Modules specified here will be registered after
518
524
* Spring's autodetection of JSR-310 and Joda-Time, or Jackson's
519
525
* finding of modules (see {@link #findModulesViaServiceLoader}),
@@ -530,7 +536,8 @@ public Jackson2ObjectMapperBuilder modulesToInstall(Module... modules) {
530
536
531
537
/**
532
538
* Specify one or more modules by class to be registered with
533
- * the {@link ObjectMapper}.
539
+ * the {@link ObjectMapper}. Multiple invocations are not additive,
540
+ * the last one defines the modules to register.
534
541
* <p>Modules specified here will be registered after
535
542
* Spring's autodetection of JSR-310 and Joda-Time, or Jackson's
536
543
* finding of modules (see {@link #findModulesViaServiceLoader}),
0 commit comments