Skip to content

Misuse of Jackson ObjectMapper #140

Closed
@arlampin

Description

@arlampin

I noticed java-jwt doesn't use Jackson's ObjectMappers in the most optimal way. They are meant to be fully thread-safe (after configuration) and reusable, as their construction is a relative heavy process. Instead, java-jwt seems to create a new one for almost any operation, including JWTParser and JWTCreator construction. Even some getter-type parsing methods create one just to parse a single value.

In practice, they could be replaced with a single static instance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions