[java] Preserve local class modifiers#1849
Conversation
Generated by 🚫 Danger |
adangel
left a comment
There was a problem hiding this comment.
👍
Seems like, we should consider different modifiers in PMD 7, so that "default" would only be valid for a interface method?
|
@adangel We could use several Modifiers productions in the future. Eg FieldModifiers wouldn't accept the Alternatively we could just have the Modifiers production check for the modifier incompatibilities, that could break a PMD run. In particular I'm thinking about
I wouldn't care too much about completely absurd modifier combinations like a However I think the API of nodes should not expose methods for such absurd modifiers. So, ClassOrInterfaceDeclaration shouldn't have a |
Fix #1848