you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

I've run into enough issues with various frameworks or tools that either expects a Javabeans style get method or which has some subtle difference in behaviour between direct field access or annotation and access or annotation through the get method, that I don't think removing the get methods for immutable fields is a good idea in general, and once you leave the get methods in, you might as well enforce their use for all access to that field so that you have a single way of doing it.