falkreon / Jankson

JSON5 / HJSON parser and preprocessor which preserves ordering and comments
MIT License
51 stars 9 forks source link

(Java 16+) Support using @Comment and @SerializedName on record components #50

Open Juuxel opened 3 years ago

Juuxel commented 3 years ago

Currently, fetching them (for my WIP record adapter) needs me to reflect the backing field of the record component, as the annotation goes onto the field. Having ElementType.RECORD_COMPONENT as a possible target would make the code cleaner (without the additional getField calls).

Of course, it's only available on Java 16 and newer so this is for the far future 😄