typetools / typetools/checker-framework
-Alint=trustArrayLenZero is not correctly working to recoganise @ArrayLen() annotation
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 440
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 134
Description
-Alint=trustArrayLenZero command line option is suggested to resolve the errors created by CF for toArray() method.
Reference
We have tried to resolve the error :
https://github.com/checkstyle/checkstyle/blob/b16e96a757ccee5be66fabb8e666823ca3cb558a/config/checker-framework-suppressions/checker-nullness-optional-interning-suppressions.xml#L154-L163
created due to toArray() method. We tried to use @ArrayLen() annotation in Checkstyle, but even after adding the command line option in pom.xml file, It either does'nt recoganises the @ArrayLen() or not works correctly.
Passed the command in
<CompilerArguments> like this : <Alint>trustArrayZeroLen</Alint>
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 the Checker Framework documentation with the referenced checker-nullness-optional-interning-suppressions.xml lines and the pom.xml CompilerArguments entry. Review PR 14596 and verify whether the option and @ArrayLen() annotation are recognized as intended; done means the reported toArray() errors are resolved without incorrect annotation handling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100