Test case for #1528#1556
Conversation
WalkthroughA regression test is added to Possibly related PRs
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. Review rate limit: 6/8 reviews remaining, refill in 14 minutes and 26 seconds.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/GenericMethodLambdaOrMethodRefArgTests.java`:
- Around line 996-999: The test currently asserts a diagnostic for
Pair::fromMapEntry inside the method Test and(Map<String, String> map), which
encodes the regression instead of the intended fix; remove the BUG comment on
the return line (the "// BUG: Diagnostic contains: parameter type of referenced
method is Entry<String, `@Nullable` String>") so that the call return
and(map.entrySet().stream(), Pair::fromMapEntry) is allowed/compiles again per
issue `#1528` and no diagnostic is expected for Pair::fromMapEntry.
🪄 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: 8bf36a28-0afe-4bf9-a082-0459286fc333
📒 Files selected for processing (1)
nullaway/src/test/java/com/uber/nullaway/jspecify/GenericMethodLambdaOrMethodRefArgTests.java
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1556 +/- ##
=========================================
Coverage 88.52% 88.52%
Complexity 2862 2862
=========================================
Files 103 103
Lines 9522 9522
Branches 1911 1911
=========================================
Hits 8429 8429
Misses 528 528
Partials 565 565 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Fixes #1528
Add a test case to ensure we handle this case correctly.
Summary by CodeRabbit