Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[java] Derive correct classname for non-public non-classes #1340
To build the class name JavaRuleViolation#setClassNameFrom(JavaNode) either iterates all ClassOrInterfaceDeclaration's or finds the first public class/enum declaration.
This PR makes it iterate all java types (class/interface, enum and annotations).