7 ms·
To be more specific, get rid of setters unless it is a data object. Have all fields be final and set them in one constructor. This makes the code more readable
by alenmilk 6y ago
To be more specific, get rid of setters unless it is a data object. Have all fields be final and set them in one constructor. This makes the code more readable since you know no method will change the internal state.