Java Getters and Setters

I’m not sure if you’d consider it ‘standard’, but Project Lombok addresses this problem. They use annotations to replace much of the verbosity of Java.

Some people are looking at alternative Java sibling languages, such as Groovy or Scala. I’m afraid it will take some years -if at all- before the JSR figures out a “standardized” way to “fix” this in Java proper.

Leave a Comment