Fix bug with storing library model type variable upper bounds - #1687
Conversation
|
This change is part of the following stack: Change managed by git-spice. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
WalkthroughUpdated upper-bound caches to use Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@nullaway/src/main/java/com/uber/nullaway/handlers/LibraryModelsHandler.java`:
- Line 1748: Add Javadoc to
ExternalStubxLibraryModels.typeVariablesWithNullableUpperBounds(), documenting
that the cache maps class-name keys to indexes of type variables with nullable
upper bounds. Keep the documentation focused on the method’s conversion behavior
and its key/value meanings.
🪄 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: 7d66f625-c7a7-4c8c-b8b9-d35898940bdd
📒 Files selected for processing (3)
nullaway/src/main/java/com/uber/nullaway/handlers/LibraryModelsHandler.javanullaway/src/main/java/com/uber/nullaway/handlers/StubxCacheUtil.javanullaway/src/test/java/com/uber/nullaway/JSpecifyJDKModelsTest.java
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1687 +/- ##
=========================================
Coverage 87.87% 87.87%
Complexity 3167 3167
=========================================
Files 109 109
Lines 10742 10742
Branches 2172 2172
=========================================
Hits 9440 9440
Misses 617 617
Partials 685 685 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
d1d713a to
4e58a28
Compare
We can have multiple type variables with modeled upper bounds. Before we used a
Mapincorrectly, causing issues for types likeBiConsumer. Now use aMultiMap.Summary by CodeRabbit
Bug Fixes
BiConsumerdeclarations.Tests