Skip to content

Commit eeb6c10

Browse files
committed
Polishing
1 parent b733474 commit eeb6c10

File tree

2 files changed

+53
-51
lines changed

2 files changed

+53
-51
lines changed

spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilder.java

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ public Jackson2ObjectMapperBuilder featuresToDisable(Object... featuresToDisable
529529

530530
/**
531531
* Specify one or more modules to be registered with the {@link ObjectMapper}.
532-
* Multiple invocations are not additive, the last one defines the modules to
532+
* <p>Multiple invocations are not additive, the last one defines the modules to
533533
* register.
534534
* <p>Note: If this is set, no finding of modules is going to happen - not by
535535
* Jackson, and not by Spring either (see {@link #findModulesViaServiceLoader}).
@@ -546,7 +546,7 @@ public Jackson2ObjectMapperBuilder modules(Module... modules) {
546546

547547
/**
548548
* Set a complete list of modules to be registered with the {@link ObjectMapper}.
549-
* Multiple invocations are not additive, the last one defines the modules to
549+
* <p>Multiple invocations are not additive, the last one defines the modules to
550550
* register.
551551
* <p>Note: If this is set, no finding of modules is going to happen - not by
552552
* Jackson, and not by Spring either (see {@link #findModulesViaServiceLoader}).
@@ -565,14 +565,15 @@ public Jackson2ObjectMapperBuilder modules(List<Module> modules) {
565565

566566
/**
567567
* Specify one or more modules to be registered with the {@link ObjectMapper}.
568-
* Multiple invocations are not additive, the last one defines the modules
568+
* <p>Multiple invocations are not additive, the last one defines the modules
569569
* to register.
570570
* <p>Modules specified here will be registered after
571571
* Spring's autodetection of JSR-310 and Joda-Time, or Jackson's
572572
* finding of modules (see {@link #findModulesViaServiceLoader}),
573573
* allowing to eventually override their configuration.
574-
* <p>Specify either this or {@link #modules}, not both.
574+
* <p>Specify either this or {@link #modules(Module...)}, not both.
575575
* @since 4.1.5
576+
* @see #modulesToInstall(Class...)
576577
* @see com.fasterxml.jackson.databind.Module
577578
*/
578579
public Jackson2ObjectMapperBuilder modulesToInstall(Module... modules) {
@@ -583,13 +584,14 @@ public Jackson2ObjectMapperBuilder modulesToInstall(Module... modules) {
583584

584585
/**
585586
* Specify one or more modules by class to be registered with
586-
* the {@link ObjectMapper}. Multiple invocations are not additive,
587-
* the last one defines the modules to register.
587+
* the {@link ObjectMapper}.
588+
* <p>Multiple invocations are not additive, the last one defines the modules
589+
* to register.
588590
* <p>Modules specified here will be registered after
589591
* Spring's autodetection of JSR-310 and Joda-Time, or Jackson's
590592
* finding of modules (see {@link #findModulesViaServiceLoader}),
591593
* allowing to eventually override their configuration.
592-
* <p>Specify either this or {@link #modules}, not both.
594+
* <p>Specify either this or {@link #modules(Module...)}, not both.
593595
* @see #modulesToInstall(Module...)
594596
* @see com.fasterxml.jackson.databind.Module
595597
*/

0 commit comments

Comments
 (0)