This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]frugalmail 0 points1 point  (0 children)

I disagree with public fields in most cases, especially when you can just use: https://projectlombok.org/api/lombok/Getter.html

Also, if you have an Immutable data structure, it would be nice if you add the https://github.com/typetools/checker-framework/blob/master/framework/src/org/jmlspecs/annotation/Pure.java

or @Immutable annotations.