Join Slack
Powered by
For a function that returns Unit, the autogenerato...
# announcements
d
danijoo
08/01/2016, 7:41 AM
For a function that returns Unit, the autogenerator for java code lets it return null. For example this:
Copy code
new Function0<Unit>() { @Override public Unit invoke() { return null; }
Is this ok or should I always change it to return
Copy code
Unit.INSTANCE
?
Open in Slack
Previous
Next