uber / uber/NullAway

Refactor @Contract parsing logic to avoid redundancies.

Open
#424 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
4.1k
Forks
370
Avg merge
1d 13h
Merged PRs (30d)
68

Description

Follow up on #312

We currently have code parsing @Contract annotations that is duplicated between ContractHandler and ContractCheckHandler, this should be common code.

See also https://github.com/uber/NullAway/pull/312#discussion_r492908591 and https://github.com/uber/NullAway/pull/312#discussion_r492910921

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.

Research direction

Compare the @Contract parsing logic in ContractHandler and ContractCheckHandler, then review the discussion linked from pull request #312 for the duplication context. Extract the common parsing behavior so both handlers use it, and verify that the two handlers retain their existing behavior without redundant parsing code.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.