Does anyone have any recommendations for tools that you can add to Eclipse, Netbeans or other IDEs to produce some of the repetitive code that's common in Java syntax?
+2
A:
Project Lombok does a pretty good job of generating getters, setters, and other common methods for you. You just have to type the annotations, and include lombok's jar, and it will generate getters/setters, hashCode and toString methods, and so forth.
It will save a lot of typing on boilerplate methods you implement over and over.
Stephen Harmon
2010-03-30 19:57:42
+1
A:
I'm a fan of NetBeans myself. It has very nice refactoring support, user definable code templates, and short cuts for the more common tasks. For example, Alt-Ins opens a menu giving me choices of adding the boiler plate for
- a Constructor,
- a Getter,
- a Setter,
- a Getter and a Setter,
- equals and hashCode,
as well as the ability to override, implement, or delegate a method.
Devon_C_Miller
2010-03-30 20:14:46
A:
Pascal Thivent
2010-03-30 20:30:36
I love me some kinesis keyboards (have 2)
Peter Recore
2010-04-01 03:15:31