@@ -497,6 +497,8 @@ public Jackson2ObjectMapperBuilder featuresToDisable(Object... featuresToDisable
497
497
498
498
/**
499
499
* Specify one or more modules to be registered with the {@link ObjectMapper}.
500
+ * Multiple invocations are not additive, the last one defines the modules to
501
+ * register.
500
502
* <p>Note: If this is set, no finding of modules is going to happen - not by
501
503
* Jackson, and not by Spring either (see {@link #findModulesViaServiceLoader}).
502
504
* As a consequence, specifying an empty list here will suppress any kind of
@@ -512,6 +514,8 @@ public Jackson2ObjectMapperBuilder modules(Module... modules) {
512
514
513
515
/**
514
516
* Set a complete list of modules to be registered with the {@link ObjectMapper}.
517
+ * Multiple invocations are not additive, the last one defines the modules to
518
+ * register.
515
519
* <p>Note: If this is set, no finding of modules is going to happen - not by
516
520
* Jackson, and not by Spring either (see {@link #findModulesViaServiceLoader}).
517
521
* As a consequence, specifying an empty list here will suppress any kind of
@@ -529,6 +533,8 @@ public Jackson2ObjectMapperBuilder modules(List<Module> modules) {
529
533
530
534
/**
531
535
* Specify one or more modules to be registered with the {@link ObjectMapper}.
536
+ * Multiple invocations are not additive, the last one defines the modules
537
+ * to register.
532
538
* <p>Modules specified here will be registered after
533
539
* Spring's autodetection of JSR-310 and Joda-Time, or Jackson's
534
540
* finding of modules (see {@link #findModulesViaServiceLoader}),
@@ -545,7 +551,8 @@ public Jackson2ObjectMapperBuilder modulesToInstall(Module... modules) {
545
551
546
552
/**
547
553
* Specify one or more modules by class to be registered with
548
- * the {@link ObjectMapper}.
554
+ * the {@link ObjectMapper}. Multiple invocations are not additive,
555
+ * the last one defines the modules to register.
549
556
* <p>Modules specified here will be registered after
550
557
* Spring's autodetection of JSR-310 and Joda-Time, or Jackson's
551
558
* finding of modules (see {@link #findModulesViaServiceLoader}),
0 commit comments