Open
Description
From the specification:
There are two ways how to register JsonbAdapter:
- Using JsonbConfig::withAdapters method;
- 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.