Skip to content

Replace ObjectMapper.getRegisteredModuleIds() (2.x) with ObjectMapper.registeredModules() (3.0) #5272

@cowtowncoder

Description

@cowtowncoder

EDIT: 3.0.0-rc9 had return type as Stream<JacksonModule>, changed in rc10 back to Collection<JacksonModule>.

Due to changes in registration of Jackson Modules (Module in 2.x, JacksonModule in 3.x), it is now possible to get access to actual modules added/registered, and not just ids.
So it makes sense to change accessor as well.

One note: while 3.0.0-rc1 - 3.0.0-rc8 had replacement as

public Collection<JacksonModule> getRegisteredModules();

and 3.0.0-rc9 as

public Stream<JacksonModule> getRegisteredModules();

we will change this further in 3.0.0-rc10 to

public Collection<JacksonModule> registeredModules()

for up-to-date naming ("getXX()" only for Simple Property accessors).

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.0Issue planned for initial 3.0 release3.0-release-notesIssues relevant for 3.0 release notes.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions