Runtime retention still doesn’t require the annotations to be present on the classpath unless you perform reflection on them (I forget the specifics). It’s a feature specific to annotations.
On Tue, Aug 25, 2020 at 14:36 Jochen Wiedmann <jochen.wiedm...@gmail.com> wrote: > On Tue, Aug 25, 2020 at 9:08 PM sebb <seb...@gmail.com> wrote: > > > > > AFAIK that means Maven won't download the dependency. > > > Surely that makes it harder for the developer? > > > > No, it means that Maven won't add the dependency to a distribution. > > > > However, I've got a question: These annotations have > > @Retention(Runtime). (See > > > https://www.javadoc.io/doc/com.google.code.findbugs/jsr305/latest/javax/annotation/Nullable.html > .) > > Aren't we enforcing the presence of the respective jar at runtime? > > > > > > Jochen > > > > -- > > > > Look, that's why there's rules, understand? So that you think before > > you break 'em. > > > > -- (Terry Pratchett, Thief of Time) > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > > For additional commands, e-mail: dev-h...@commons.apache.org > > > > -- Matt Sicker <boa...@gmail.com>