Improve provenance - #7912
Conversation
…into type-inference-8-review
… into type-inference-8-review-2-16
… into type-inference-8-review-2-16
… into type-inference-8-review-2-16
… into type-inference-8-review-2-16
… into type-inference-8-review-2-16
… into type-inference-8-review-2-16
… into type-inference-8-review-2-16
… into type-inference-8-review-2-16
|
Warning Review limit reached
Next review available in: 51 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughType-inference constraints now retain derivation metadata and report typed parent history. Variable-bound incorporation uses provenance-aware helpers. A jtreg test verifies complementary-bound diagnostics. Nullness persistence tests migrate to Possibly related PRs
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
…ker-framework into type-inference-8-review-2-16
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@checker/jtreg/nullness/defaultsPersist/ReferenceInfoUtil.java`:
- Around line 110-112: Remove the System.out.println debug statement inside the
properName.equals(actualName) condition in ReferenceInfoUtil, leaving the
name-matching logic and existing ComparisonException reporting unchanged.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 57914c6e-5269-40b2-98f9-1e4a74f5277b
📒 Files selected for processing (16)
build.gradlechecker/jtreg/nullness/PersistUtil.javachecker/jtreg/nullness/defaultsPersist/Classes.javachecker/jtreg/nullness/defaultsPersist/Constructors.javachecker/jtreg/nullness/defaultsPersist/Driver.javachecker/jtreg/nullness/defaultsPersist/Fields.javachecker/jtreg/nullness/defaultsPersist/Methods.javachecker/jtreg/nullness/defaultsPersist/ReferenceInfoUtil.javachecker/jtreg/nullness/inheritDeclAnnoPersist/Driver.javachecker/jtreg/nullness/inheritDeclAnnoPersist/Extends.javachecker/jtreg/nullness/inheritDeclAnnoPersist/Implements.javachecker/jtreg/nullness/inheritDeclAnnoPersist/ReferenceInfoUtil.javaframework-test/src/main/java/org/checkerframework/framework/test/TestUtilities.javaframework-test/src/main/java/org/checkerframework/framework/test/diagnostics/TestDiagnosticUtils.javaframework/src/main/java/org/checkerframework/framework/util/typeinference8/constraint/TypeConstraint.javaframework/src/main/java/org/checkerframework/framework/util/typeinference8/types/VariableBounds.java
| if (properName.equals(actualName)) { | ||
| System.out.println("For Anno: " + actualName); | ||
| } |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win
Remove the debug print.
Lines 110-112 print "For Anno: " + actualName for every name match, including matches in passing tests. The print adds noise to the jtreg output and provides no assertion value. The ComparisonException message at lines 133-141 already reports the failing annotation and position.
♻️ Proposed fix to drop the debug print
for (TypeAnnotation anno : annotations) {
String actualName = anno.annotation().className().stringValue();
-
- if (properName.equals(actualName)) {
- System.out.println("For Anno: " + actualName);
- }
-
if (properName.equals(actualName) && isAtPosition(expected, anno)) {
return anno;
}
}🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@checker/jtreg/nullness/defaultsPersist/ReferenceInfoUtil.java` around lines
110 - 112, Remove the System.out.println debug statement inside the
properName.equals(actualName) condition in ReferenceInfoUtil, leaving the
name-matching logic and existing ComparisonException reporting unchanged.
Merge #7941 first.