Skip to content

Simplify logic#7744

Open
mernst wants to merge 3 commits into
typetools:masterfrom
mernst:local-vars-2
Open

Simplify logic#7744
mernst wants to merge 3 commits into
typetools:masterfrom
mernst:local-vars-2

Conversation

@mernst
Copy link
Copy Markdown
Member

@mernst mernst commented May 27, 2026

Merge after #7743

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 27, 2026

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: e89f7f7e-1da5-43af-8fdb-045ca78968bf

📥 Commits

Reviewing files that changed from the base of the PR and between ffa8329 and 3d91ebd.

📒 Files selected for processing (2)
  • framework/src/main/java/org/checkerframework/common/basetype/BaseTypeValidator.java
  • framework/src/main/java/org/checkerframework/common/basetype/BaseTypeVisitor.java

📝 Walkthrough

Walkthrough

This pull request refactors annotation validation logic in two Checker Framework validator classes. BaseTypeValidator now caches a local TypeHierarchy instance and uses it consistently for subtype checks when validating captured type variables against wildcard extends and super bounds, replacing repeated fetches from atypeFactory. BaseTypeVisitor restructures the constructor invocation annotation comparability logic by introducing a local retType variable and reorganizing subtype check branches to separate error and warning cases more explicitly, while preserving all diagnostic behavior.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@mernst
Copy link
Copy Markdown
Member Author

mernst commented May 27, 2026

@smillst I resolved the merge conflict.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants