Is it a good or bad idea to make setters in java return \"this\"?
public Employee setName(String name){ this.name = name; return this; }
From the statement
list.add(new Employee().setName("Jack Sparrow").setId(1).setFoo("bacon!"));
i am seeing two things
1) Meaningless statement. 2) Lack of readability.