You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@mleg By the way, I don't think that you should rename all methods in Sneaky class. But instead there has to be a separate unchecked method with required overloaded parameters. Because sometimes we do need to create particular functional wrapper.
Found annoying to figure out each time which method to use. I'm not very good at rememebering all Java functional interfaces.
Proposal:
Give all
Sneaky
class methods same name (unchecked
for example) thus overloading them.Instead of writing
it would look like
Notice static import now is more sensible.
Also it helps with refactoring when lambda signature changes.
The text was updated successfully, but these errors were encountered: