New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for @NotNullByDefault #2860
Comments
Hm, maybe I made a mistake. I use @nonnull on fields but the javadoc said on method-parameters. |
This is possibly related to #805 |
Have you tried |
If I use the annotation I need to publish the sourcecode according to https://www.eclipse.org/legal/epl-2.0/ I can not do that! |
This is wrong. EPL 2.0 only requires to publisch modified EPL 2.0 code, so if you only use an EPL library, nothing needed to be published. |
Please read again. At last if someone subclass the annotation we need to publish the subclass including the package, license and other organisational decisions. It forces company details to offer to the public clients are not willing to admit. |
Support |
Sorry, you are still wrong, and don’t understand EPL. |
Legal department said no EPL. Im no lawyer. Back to the debate? |
I'm not sure what you want to debate, sure it would be nice if SpotBugs could support more ways to declare nullability, but at the end of the day this takes valuable time to contributors, on their free time. |
Well, I think this ticket can be closed. You guys decide. |
I don't think we're closing the door to supporting |
I have a maven modul that contains DTOs only to encapsule the Single-Version-Of-Truth.
Since there is no LLOC Spotbugs thinks they are unused.
In order to not get an spotbugs-error I use
@NonNull
on all fields (org.codehaus.commons.nullanalysis.NotNull). This works great.Since I need to annotate every single field with this annotation I tried to use
org.codehaus.commons.nullanalysis.NotNullByDefault
on the class in order to affect all fields in the class.Unfortunately
@NotNullByDefault
does not cascade@NonNull
to the class's fields.But the javadoc points out:
Please:
@NotNullByDefault
on class-level@NotNullByDefault
on package-info levelThe text was updated successfully, but these errors were encountered: