typetools / typetools/checker-framework

@EnsuresQualifierIf annotation that supports annotation arguments

Open
#1,606 3 comments 0 reactions 1 assignee View on GitHub

@panacekcz is already working on this.

Since Mar 13, 2018.

enhancement
Dominant language
Java
Stars
1.1k
Forks
440
Avg merge
1d 12h
Merged PRs (30d)
134

Description

The Checker Framework needs a variant of @EnsuresQualifierIf that establishes an annotation with arguments.
Perhaps this could be done by adding a qualifierArgs field that defaults to null.

This would eliminate the need for:

  • RegexTransfer special cases for isRegex(String, int) and asRegex(String, int).
  • KeyForTransfer special cases for Map.put and Map.containsKey.
  • 38 @SuppressWarnings in Daikon, related to the KeyFor Checker
  • At least 12 @SuppressWarnings in guava, related to the Index Checker.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.