Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bugs in handling of valueOf calls for map keys #1085

Merged
merged 4 commits into from
Dec 12, 2024

Conversation

msridhar
Copy link
Collaborator

@msridhar msridhar commented Dec 6, 2024

Fixes the second crash from #1082. Our handling of valueOf calls in map key arguments was a bit hacky and syntactic. Fix to properly check for calls to Integer.valueOf or Long.valueOf.

Copy link

codecov bot commented Dec 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.93%. Comparing base (1fc39b3) to head (ae59ae3).
Report is 1 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1085      +/-   ##
============================================
+ Coverage     87.87%   87.93%   +0.06%     
- Complexity     2217     2221       +4     
============================================
  Files            85       85              
  Lines          7193     7197       +4     
  Branches       1427     1427              
============================================
+ Hits           6321     6329       +8     
  Misses          438      438              
+ Partials        434      430       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@msridhar msridhar requested review from stefanheule and removed request for yuxincs December 12, 2024 17:30
Copy link
Collaborator

@stefanheule stefanheule left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@msridhar msridhar merged commit d21d4ab into uber:master Dec 12, 2024
11 checks passed
@msridhar msridhar deleted the valueOf-null-receiver branch December 12, 2024 18:14
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