[ 
https://issues.apache.org/jira/browse/OAK-9844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Konrad Windszus resolved OAK-9844.
----------------------------------
    Fix Version/s: 1.46.0
       Resolution: Fixed

Fixed in 
https://github.com/apache/jackrabbit-oak/commit/404292b87cbb065b4a69d25e05cd58d197112344.

> Nullness annotations must not be used on primitive types
> --------------------------------------------------------
>
>                 Key: OAK-9844
>                 URL: https://issues.apache.org/jira/browse/OAK-9844
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: segment-tar
>            Reporter: Konrad Windszus
>            Assignee: Konrad Windszus
>            Priority: Major
>             Fix For: 1.46.0
>
>
> Primitive types can never be {{null}} therefore using any nullness annotation 
> on them is invalid. Also to prevent that an array is null the syntax needs to 
> be
> {code}
> <element type> <nullness annotation> [], e.g. byte @NotNull []
> {code}
> Something like e.g. {{@NotNull byte []}} is invalid (compare with 
> https://stackoverflow.com/questions/62066166/string-notnull-syntax-causes-notnull-not-applicable-to-type-use-in-in).



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

Reply via email to