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

Stefan Miklosovic commented on CASSANALYTICS-66:
------------------------------------------------

It would be maybe more appropriate to create a custom VisibleForTesting 
annotation just for the sake of not depending on com.google.guava:guava in 
analytics-sidecar-client. Does not make a lot of sense to include that, might 
be source of future discrepancies etc ... it is not like Nonnull / Nullable 
that it would be detected in IDEA or anything like that. 

> Replace org.jetbrains.annotations.NotNull 
> ------------------------------------------
>
>                 Key: CASSANALYTICS-66
>                 URL: https://issues.apache.org/jira/browse/CASSANALYTICS-66
>             Project: Apache Cassandra Analytics
>          Issue Type: Task
>          Components: Build
>            Reporter: Stefan Miklosovic
>            Assignee: Stefan Miklosovic
>            Priority: Normal
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Is there some important reason why these annotations are used? When I copy 
> some class with them to new project, they are not found. Is this because the 
> project is developed in IntelliJ IDEA most often and there is some support 
> for that in IDE itself when something might be null and so on?
> I do not think we should be biased towards one IDE in the code. 
> Based on this (1) all of these annotations are recognized by IDEA. I think we 
> should use something like javax.annotations.(Nullable|Nonnull) to be the most 
> neutral possible. 
> (1) 
> https://www.jetbrains.com/help/idea/annotating-source-code.html#default_nullability_annotations



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to