@@ -260,7 +260,7 @@ public Jackson2ObjectMapperBuilder filters(FilterProvider filters) {
260
260
* @param mixinSource class (or interface) whose annotations are to be "added"
261
261
* to target's annotations as value
262
262
* @since 4.1.2
263
- * @see com.fasterxml.jackson.databind.ObjectMapper#addMixInAnnotations (Class, Class)
263
+ * @see com.fasterxml.jackson.databind.ObjectMapper#addMixIn (Class, Class)
264
264
*/
265
265
public Jackson2ObjectMapperBuilder mixIn (Class <?> target , Class <?> mixinSource ) {
266
266
if (mixinSource != null ) {
@@ -271,11 +271,11 @@ public Jackson2ObjectMapperBuilder mixIn(Class<?> target, Class<?> mixinSource)
271
271
272
272
/**
273
273
* Add mix-in annotations to use for augmenting specified class or interface.
274
- * @param mixIns Map of entries with target classes (or interface) whose annotations
274
+ * @param mixIns a Map of entries with target classes (or interface) whose annotations
275
275
* to effectively override as key and mix-in classes (or interface) whose
276
276
* annotations are to be "added" to target's annotations as value.
277
277
* @since 4.1.2
278
- * @see com.fasterxml.jackson.databind.ObjectMapper#addMixInAnnotations (Class, Class)
278
+ * @see com.fasterxml.jackson.databind.ObjectMapper#addMixIn (Class, Class)
279
279
*/
280
280
public Jackson2ObjectMapperBuilder mixIns (Map <Class <?>, Class <?>> mixIns ) {
281
281
if (mixIns != null ) {
@@ -304,8 +304,8 @@ public Jackson2ObjectMapperBuilder serializers(JsonSerializer<?>... serializers)
304
304
305
305
/**
306
306
* Configure a custom serializer for the given type.
307
- * @see #serializers(JsonSerializer...)
308
307
* @since 4.1.2
308
+ * @see #serializers(JsonSerializer...)
309
309
*/
310
310
public Jackson2ObjectMapperBuilder serializerByType (Class <?> type , JsonSerializer <?> serializer ) {
311
311
if (serializer != null ) {
@@ -463,6 +463,8 @@ public Jackson2ObjectMapperBuilder featuresToDisable(Object... featuresToDisable
463
463
464
464
/**
465
465
* Specify one or more modules to be registered with the {@link ObjectMapper}.
466
+ * Multiple invocations are not additive, the last one defines the modules to
467
+ * register.
466
468
* <p>Note: If this is set, no finding of modules is going to happen - not by
467
469
* Jackson, and not by Spring either (see {@link #findModulesViaServiceLoader}).
468
470
* As a consequence, specifying an empty list here will suppress any kind of
@@ -478,6 +480,8 @@ public Jackson2ObjectMapperBuilder modules(Module... modules) {
478
480
479
481
/**
480
482
* Set a complete list of modules to be registered with the {@link ObjectMapper}.
483
+ * Multiple invocations are not additive, the last one defines the modules to
484
+ * register.
481
485
* <p>Note: If this is set, no finding of modules is going to happen - not by
482
486
* Jackson, and not by Spring either (see {@link #findModulesViaServiceLoader}).
483
487
* As a consequence, specifying an empty list here will suppress any kind of
@@ -495,6 +499,8 @@ public Jackson2ObjectMapperBuilder modules(List<Module> modules) {
495
499
496
500
/**
497
501
* Specify one or more modules to be registered with the {@link ObjectMapper}.
502
+ * Multiple invocations are not additive, the last one defines the modules
503
+ * to register.
498
504
* <p>Modules specified here will be registered after
499
505
* Spring's autodetection of JSR-310 and Joda-Time, or Jackson's
500
506
* finding of modules (see {@link #findModulesViaServiceLoader}),
@@ -511,7 +517,8 @@ public Jackson2ObjectMapperBuilder modulesToInstall(Module... modules) {
511
517
512
518
/**
513
519
* Specify one or more modules by class to be registered with
514
- * the {@link ObjectMapper}.
520
+ * the {@link ObjectMapper}. Multiple invocations are not additive,
521
+ * the last one defines the modules to register.
515
522
* <p>Modules specified here will be registered after
516
523
* Spring's autodetection of JSR-310 and Joda-Time, or Jackson's
517
524
* finding of modules (see {@link #findModulesViaServiceLoader}),
@@ -529,7 +536,7 @@ public Jackson2ObjectMapperBuilder modulesToInstall(Class<? extends Module>... m
529
536
530
537
/**
531
538
* Set whether to let Jackson find available modules via the JDK ServiceLoader,
532
- * based on META-INF metadata in the classpath. Requires Jackson 2.2 or higher.
539
+ * based on META-INF metadata in the classpath.
533
540
* <p>If this mode is not set, Spring's Jackson2ObjectMapperBuilder itself
534
541
* will try to find the JSR-310 and Joda-Time support modules on the classpath -
535
542
* provided that Java 8 and Joda-Time themselves are available, respectively.
0 commit comments