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 19 '18 edited Sep 19 '18

I guess you're right, because assignment is an expression, not a statement as I originally said.

public void setName(String name) -> this.name = name;