-
Notifications
You must be signed in to change notification settings - Fork 238
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
Java8 ByteBuffer.flip returnType #974
Conversation
/gcbun |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## branch-2.2.x #974 +/- ##
==================================================
+ Coverage 80.99% 81.13% +0.13%
- Complexity 2237 2250 +13
==================================================
Files 154 156 +2
Lines 10342 10369 +27
Branches 1209 1211 +2
==================================================
+ Hits 8377 8413 +36
+ Misses 1447 1442 -5
+ Partials 518 514 -4
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@@ -131,7 +132,7 @@ public Boolean call() throws Exception { | |||
} | |||
byteBuffer.put(data.toByteArray()); | |||
// switch to read mode | |||
byteBuffer.flip(); | |||
((Buffer) byteBuffer).flip(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we are doing this? What will happen if we do not do this?
Also, add a comment here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is covered as part of PR description.
Updating use of
BuyteBuffer.flip()
for Java8 plasma-umass/doppio#497 (comment) explains the issue very well.