Skip to content

Commit 2a7600a

Browse files
committed
Minor javadoc improvement wrt #3110
1 parent bbf650f commit 2a7600a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java

+8-2
Original file line numberDiff line numberDiff line change
@@ -1043,8 +1043,14 @@ public ObjectMapper registerModules(Iterable<? extends Module> modules)
10431043

10441044
/**
10451045
* The set of {@link Module} typeIds that are registered in this
1046-
* ObjectMapper. By default the typeId for a module is it's full
1047-
* class name (see {@link Module#getTypeId()}).
1046+
* ObjectMapper, if (and only if!)
1047+
* {@link MapperFeature#IGNORE_DUPLICATE_MODULE_REGISTRATIONS}
1048+
* is enabled AND module being added returns non-{@null} value
1049+
* for its {@link Module#getTypeId()}.
1050+
*<p>
1051+
* NOTE: when using the default {@link com.fasterxml.jackson.databind.module.SimpleModule}
1052+
* constructor, its id is specified as {@code null} and as a consequence such
1053+
* module is NOT included in returned set.
10481054
*
10491055
* @since 2.9.6
10501056
*/

0 commit comments

Comments
 (0)