@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
lombok.jar
in your IDE, you can also check out the javadoc.