-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Add Check Support for Java 17 Sealed Classes: RedundantModifer #15087
Labels
Comments
11 tasks
Can you have a
|
we can't have a final sealed class this will not compile as It is not possible for a class to be both sealed (implying subclasses) and final (implying no subclasses)
|
I am good. |
Let's add an input file for this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
child of #14969 :
Check documentation : https://checkstyle.org/checks/modifier/redundantmodifier.html#RedundantModifier
The check works correctly when the redundant modifiers are on sealed classes. I read the doc and JEP related to sealed classes and I don't find a new case that the modifier is redundant. So, this check doesn't need an update.
The text was updated successfully, but these errors were encountered: