-
Notifications
You must be signed in to change notification settings - Fork 8
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
How about something like Final by Default #6
Comments
If it's not |
Fair point. Just avoiding the keyword final. It should be declared |
That still allows their subclassing by downstream libraries. I suppose if the type isn't effectively public then perhaps the check shouldn't apply? |
Oh. Didn't think of this use case. |
Probably a check which checks if the class is not marked with
@Open
or abstract should not have any subclasses.On a related note, it will be a great thing to have FinalByDefault (similar to NonNullByDefault) baked in the type system via EP check or checker framework.
The text was updated successfully, but these errors were encountered: