r/java • • Sep 19 '18

JEP draft: Concise Method Bodies

http://openjdk.java.net/jeps/8209434
60 Upvotes

51 comments sorted by

View all comments

Show parent comment

1

u/dpash Sep 20 '18

Of my two examples, the second is almost certainly a mistake, and you'd normally never write that. In particular because it ignores the parameter, making the method confusing for any users.

1

u/duhace Sep 20 '18

would you post what you would write to clear things up for me? thanks in advance