-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
2.x: full JDK 6 compatible backport + including bugfixes up to today #3668
Conversation
This is basically unreviewable, so I vote that it is just merged. People can go through the code base passively and bring up any issues/questions/etc. as they're discovered. |
It's not possible incrementally anyway, i.e., by using our own Function, it affects all operators that take Function. |
👍 Agree |
} | ||
|
||
public T get() { | ||
return value; |
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.
This method throws exception if value is null
in JDK 8'th impl, is this intended, @akarnokd?
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.
By us, it's of
that throws before even creating the optional.
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.
Code can (through abstraction) end up doing Optional.empty().get()
which leaks a null reference into the system though.
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.
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.
Agree, of
and get
need to check for null.
I'm ok for merging it as is. |
👍 for all of this |
2.x: full JDK 6 compatible backport + including bugfixes up to today
Merged. Happy reviewing! |
Due to the issue with AtomicXFieldUpdaters on certain Android devices, I had to manually replace all of them with regular AtomicX classes.