Comments

Never write public int getFoo() {return foo;}

Makes Java a spicier language...

Project Lombok makes java a spicier language by adding 'handlers' that know how to build and compile simple, boilerplate-free, not-quite-java code. Never write public int getFoo() {return foo;} A shortcut for @ToString, @EqualsAndHashCode, @Getter on all fields, and @Setter on all non-final fields, and @RequiredArgsConstructor! Added 11 years ago.

Excellent

11 years ago.

This project allows you to automatically generate java code based on annotations. Instead of writing reams of boilerplate getters / setters you can use an annotation instead. In the rare cases where you need a custom getter / setter, you can of course do it manually. That alone saves hundreds of lines of pointless code. This plugin is awesome. Pros: Saves you writing getters and setters. Cons: Not easy to see the "generated" code.


Your
opinion?

 Best User Rated

The Best.
CPUGPUSSD
Intel Core i5-13600K $279Nvidia RTX 4060 $300Crucial MX500 250GB $40
Intel Core i5-12400F $134Nvidia RTX 4060-Ti $385Samsung 850 Evo 120GB $80
Intel Core i5-12600K $184Nvidia RTX 4070 $409Samsung 860 Evo 250GB $52
HDDRAMUSB
Seagate Barracuda 1TB (2016) $39Corsair Vengeance LPX DDR4 3200 C16 2x8GB $40SanDisk Extreme 64GB $72
WD Blue 1TB (2012) $35Corsair Vengeance LPX DDR4 3000 C15 2x8GB $43SanDisk Extreme 32GB $28
Seagate Barracuda 2TB (2016) $51G.SKILL Trident Z DDR4 3200 C14 4x16GB $351SanDisk Ultra Fit 32GB $16
If you make a purchase via one of these links, our site may earn a commission
Today's hottest deals
About  •  User Guide  •  FAQs  •  Email  •  Privacy  •  Developer  •  YouTube Feedback