Created
March 26, 2014 00:03
-
-
Save irbull/9774172 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MyInterface r2 = () -> | |
System.out.println("Hello, world"); | |
System.out.println("Goodbye, world!"); | |
vs. | |
MyInterface r2 = () -> { | |
System.out.println("Hello, world"); | |
System.out.println("Goodbye, world!"); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Right, with methods without a return type (void), the above can indeed lead to unnoticed errors. But with format-on-save, the indentation would be changed: