[
https://issues.apache.org/jira/browse/AVRO-1831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17497554#comment-17497554
]
David Schneiderbauer commented on AVRO-1831:
--------------------------------------------
Thanks for you input! I will fiddle around with the implementation.
However at first sight it looks like basically every field of the schema can be
nullable, since there is the default constructor.
I suppose we cannot get rid of it. Which means we can only ensure that the
all-args constructor + setter parameters are properly annotated.
> Take advantage of JSR 3.5 annotations in the generated java classes.
> --------------------------------------------------------------------
>
> Key: AVRO-1831
> URL: https://issues.apache.org/jira/browse/AVRO-1831
> Project: Apache Avro
> Issue Type: Improvement
> Components: java
> Reporter: Zoltan Farkas
> Priority: Minor
>
> it would be nice if the generated records would take advantage of:
> @javax.annotation.Nullable
> @javax.annotation.Nonnull
> to annotate the fields that can be null...
> This would have a documenting role, and more importantly allow findbugs to
> detect incorrect use of the fields.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)