File tree 1 file changed +8
-2
lines changed
src/main/java/com/fasterxml/jackson/databind
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1043,8 +1043,14 @@ public ObjectMapper registerModules(Iterable<? extends Module> modules)
1043
1043
1044
1044
/**
1045
1045
* 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.
1048
1054
*
1049
1055
* @since 2.9.6
1050
1056
*/
You can’t perform that action at this time.
0 commit comments