You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by "Christophe Le Saec (Jira)" <ji...@apache.org> on 2022/10/18 09:29:00 UTC

[jira] [Commented] (AVRO-3641) Add support for Nullable and NotNull annotations for SpecificRecords

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

Christophe Le Saec commented on AVRO-3641:
------------------------------------------

_compile time safety for nullability_
In java, it should imply usage of [checkerframework|https://checkerframework.org/] (like Apache beam project does) with annotations like @org.checkerframework.checker.nullness.qual.NonNull for example.
But currently, Avro project has no dependency with CheckerFramework, so it should be added for that; i don't know if it's planned.

> Add support for Nullable and NotNull annotations for SpecificRecords
> --------------------------------------------------------------------
>
>                 Key: AVRO-3641
>                 URL: https://issues.apache.org/jira/browse/AVRO-3641
>             Project: Apache Avro
>          Issue Type: New Feature
>          Components: java
>            Reporter: Peter Knuts
>            Priority: Major
>
> Update the Java SpecificCompiler to add support for jetbrains {{@Nullable}} and {{@NotNull}} annotations to getters, setters, builders and all-arg constructor. This will provide compile time safety for nullability when used.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)