[ 
https://issues.apache.org/jira/browse/AVRO-1831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16761261#comment-16761261
 ] 

Ryan Barker edited comment on AVRO-1831 at 2/5/19 10:10 PM:
------------------------------------------------------------

We have done some initial work to support these annotations in order to support 
Kotlin properly

 

This is the current work in progress:

[https://github.com/ZEFR-INC/avro/pull/1]

 

We have tested it locally with @javax.annotation.Nonnull and it works properly 
in Intellij, see below.

 

[https://i.imgur.com/whbRDDI.jpg]

 

 


was (Author: rbarker-zefr):
We have done some initial work to support these annotations in order to support 
Kotlin properly

 

This is the current work in progress:

[https://github.com/ZEFR-INC/avro/pull/1]

 

We have tested it locally with @javax.annotation.Nonnull and it works properly 
in Intellij, see below.

 

 

!image-2019-02-05-14-08-19-127.png!  

 

> 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 windbags to 
> detect incorrect use of the fields.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to