Skip to content

Adapter specification incomplete #240

Open
@martijndwars

Description

@martijndwars

From the specification:

There are two ways how to register JsonbAdapter:

  1. Using JsonbConfig::withAdapters method;
  2. Annotating a class field with JsonbTypeAdapter annotation.

However, the JsonbTypeAdapter annotation has as possible targets ANNOTATION_TYPE , TYPE, FIELD, METHOD, which means that you can also annotate a class itself with this annotation and not just a class field.

I'm being a bit pedantic, but I thought I'd create an issue so this can be clarified in future versions of the specification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationInvolves the spec or javadocs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions