rewrite
rewrite copied to clipboard
Annotation Matcher with inner Enums as Attribute Values
What's changed?
What's your motivation?
Application Frameworks like Spring often user enums for annotation attributes to restrict the possible values. Often these enums are defined within the annotation class itself as inner enums. Traits canot work 100% in this cases.
Anything in particular you'd like reviewers to focus on?
There is a new ToDo this line is the problem. The root problem seems to be that the type of FieldAccess for inner enums is not set correctly.
Anyone you would like to review specifically?
Have you considered any alternatives or workarounds?
Add adtional checks in the visitor methods.
Any additional context
Checklist
- [ ] I've added unit tests to cover both positive and negative cases
- [ ] I've read and applied the recipe conventions and best practices
- [ ] I've used the IntelliJ IDEA auto-formatter on affected files
This PR is stale because it has been open for 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.