Repository navigation
Handle subtype checking for wildcard super bounds - #1547
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughAdds explicit handling for formal wildcard type arguments of the form Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@nullaway/src/test/java/com/uber/nullaway/jspecify/WildcardTests.java`:
- Around line 232-260: Test name wildcardSuperFormalNoInference contains a stray
numeric suffix on a local variable: rename nonnullSuperLocal2 to
nonnullSuperLocal inside the test method (class WildcardTests, method
wildcardSuperFormalNoInference) and update any references in that method so the
variable name is consistent and clearer.
🪄 Autofix (Beta)
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
Run ID: df0ff97d-4004-4e87-b9fc-3b768b5c25f0
📒 Files selected for processing (2)
nullaway/src/main/java/com/uber/nullaway/generics/CheckIdenticalNullabilityVisitor.javanullaway/src/test/java/com/uber/nullaway/jspecify/WildcardTests.java
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1547 +/- ##
============================================
- Coverage 88.50% 88.49% -0.02%
- Complexity 2857 2859 +2
============================================
Files 103 103
Lines 9517 9525 +8
Branches 1912 1914 +2
============================================
+ Hits 8423 8429 +6
- Misses 528 529 +1
- Partials 566 567 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@nullaway/src/test/java/com/uber/nullaway/jspecify/WildcardTests.java`:
- Around line 232-260: The test uses loose diagnostic markers for two expected
failures; in WildcardTests.wildcardSuperFormalNoInference update the two "//
BUG: Diagnostic contains: incompatible types:" comments for the failing
assignments to nullableSuperLocal3 and nullableSuperFromNonnullSuper to the
exact converted-types text used elsewhere in the test suite (i.e., include the
full "incompatible types: ... cannot be converted to ..." message with the
concrete converted type strings) so the assertions precisely match the
diagnostic output instead of a generic contains check.
🪄 Autofix (Beta)
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
Run ID: 96e32a29-9ac2-4beb-9db5-783c5828d887
📒 Files selected for processing (1)
nullaway/src/test/java/com/uber/nullaway/jspecify/WildcardTests.java
Add one more case of containment checking, handling super-bounded wildcards (
? super T). Also, update a comment for another case, which we'll need to handle alongside inference support.Summary by CodeRabbit
Bug Fixes
Tests