>>>>> Eric Lilja <[email protected]>:
> Is the findbugs dependency really a runtime requirement for jsoup to
> function? It has <scope>provided</scope> in the pom file for jsoup
Good question!
More questions to answer:
1. Are the annotations fetched from these packages only used in test
code or, are they used in production code?
2. Do the annotations have RetentionPolicy.RUNTIME or SOURCE?
The following annotations are used in .java files in src/main/java/ of
jsoup:
javax.annotation.Nonnull (RetentionPolicy.RUNTIME)
javax.annotation.Nullable (RetentionPolicy.RUNTIME)
javax.annotation.ParametersAreNonnullByDefault (RetentionPolicy.RUNTIME)
javax.annotation.meta.TypeQualifierDefault (RetentionPolicy.RUNTIME)
So, yes, they are all required at runtime.
And they aren't slurped into the jsoup bundle, because of the copyright
of the findbugs jar (is what I'm guessing from the comment on the
dependency in the jsoup pom.xml file...?).