typetools / typetools/checker-framework
Clean up logic to determine whether an annotation is a type annotation
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 440
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 134
Description
#2298 added checks to ensure annotations and modifiers are ordered properly.
This duplicated some logic in BaseTypeVisitor.isTypeAnnotation that would be more properly put into AnnotatedTypes, which already containes an isTypeAnnotation method.
#2376 started work on this clean up, but is running into problems.
Solving this issue would reduce duplication and move logic to a consistent place.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing BaseTypeVisitor.isTypeAnnotation with the existing AnnotatedTypes.isTypeAnnotation method. Read the changes and problems described in #2298 and #2376 before tracing how annotation and modifier ordering checks use this logic. Done means the duplicated logic is centralized in AnnotatedTypes and ordering checks continue to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- compilers
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100