-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Allow @NonNull on the parameters of abstract/interface methods #807
Comments
👤 r.spilker 🕗 Jan 22, 2015 at 16:55 UTC Rationale: They serve a documentation purpose and we don't want to force the users to add a different @ NonNull for just those cases. |
End of migration |
I found it counter-intuitive that putting Is there a reason or convention which prevented Lombok from doing this? |
@alexandroid, see this discussion here: https://stackoverflow.com/questions/15607060/java-interface-throws-an-exception-but-interface-implementation-does-not-throw-a The accepted answer is a quote from Stan James:
I agree that it would be confusing for an interface to declare an exception thrown under a given condition, but an implementation of that interface to not throw it. It's up to the implementer of the interface to abide by the contract defined in the interface or to clearly document the reason for not doing so. |
Migrated from Google Code (issue 772)
The text was updated successfully, but these errors were encountered: