Skip to content

Add an ObjectMapper shorthand#620

Merged
komamitsu merged 2 commits intomsgpack:developfrom
cyberdelia:shorthand
Jan 15, 2022
Merged

Add an ObjectMapper shorthand#620
komamitsu merged 2 commits intomsgpack:developfrom
cyberdelia:shorthand

Conversation

@cyberdelia
Copy link
Copy Markdown
Contributor

Add an ObjectMapper shorthand, allowing a less verbose initialization:

ObjectMapper objectMapper = new MessagePackMapper();

Rather than:

ObjectMapper objectMapper = new ObjectMapper(new MessagePackFactory());

It's similar to other dataformat implementation as well, see: https://github.com/FasterXML/jackson-dataformats-binary/tree/master/protobuf#creating-objectmapper

Copy link
Copy Markdown
Member

@komamitsu komamitsu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks! 🍷

@komamitsu komamitsu merged commit 6086904 into msgpack:develop Jan 15, 2022
@cyberdelia cyberdelia deleted the shorthand branch January 15, 2022 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants