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

Nitin Gupta closed OAK-9844.
----------------------------

> 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