@Getter
/ @Setter
public int getFoo() {return foo;}
again.@Data
toString
, hashCode
, equals
, a constructor, and getters and setters
from just the fields in your class.@Cleanup
close()
methods safely with no hassle.@Synchronized
synchronized
done right: Don't expose your locks.@SneakyThrows