Project Lombok – Cool, but too much Magic?
Andreas pointed me at a nice library, lombok. It enhances Java compilation so that classes need less clutter to work.
For me, the features are awesome. Just by adding @Data to a class, it will generate all the getters and setters, toString() and the hashCode() and equals() methods. This is pretty much as in groovy the magic accessors. I like that. Because I can focus on the important stuff, rather than scrolling through hundreds of clutter lines. I also like that nobody plays around with my getters and setters and introduces side effects. It also fits to agile process: Eliminate muda.
I really like @SneakyThrows because i hate the UnsupportedEncodingException whenever if specify “UTF-8″ which really never ever can happen (as long as the parameter passed into is a constant, not a dynamic param).



category:




