You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2023/10/23 11:41: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=17778628#comment-17778628 ] 

ASF subversion and git services commented on AVRO-3641:
-------------------------------------------------------

Commit 2b1955947ab446ad437f152ec2f3310ea399a015 in avro's branch refs/heads/main from Peter Knuts
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=2b1955947 ]

AVRO-3641: Adds support for nullSafeAnnotations to java SpecificCompiler (#2142)

* AVRO-3641: Adds support for nullSafeAnnotations to java SpecificCompiler

* AVRO-3641: Removes maven dependency to org.jetbrains:annotations since it is only used in the produced jar

* AVRO-3641: Removes the unused property for jetbrains-annotations version

* AVRO-3641: Removes empty lines from expected output file

* Revert "AVRO-3641: Removes empty lines from expected output file"

This reverts commit f99cf168018d6097c75e075d2f06d0496531553e.

* AVRO-3641: Use full class name for null safe annotations instead of imports

* AVRO-3641: Adds avro-maven-plugin config parameter for createNullSafeAnnotations

* AVRO-3641: Clarifies the source of the nullability annotations

* AVRO-3641: Minor javadoc formatting.

* AVRO-3641: Fixes spotless formatting

* AVRO-3641: Adds license exclude for NullSafeAnnotationsFieldsTest.java

---------

Co-authored-by: pknu <pe...@sbab.se>

> 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
>              Labels: pull-request-available
>         Attachments: AVRO-3641.patch
>
>          Time Spent: 3h
>  Remaining Estimate: 0h
>
> 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)