Hot and spicy Java with Lombok. Live!
summary
Live coding shows Lombok (Maven dependency + optional IDE plugin) replacing repetitive getters/setters, equals/hashCode, toString and constructors so a simple Whisky class shrinks ~4x and tests stay green after swaps. Examples build Barrel, Bottle and Bar classes using @Data, @Builder, @Value, plus @Synchronized and @SneakyThrows; Delombok/Delombok plugin reveals generated sync blocks and exception-wrapping tricks. Caveats: hidden API changes, fluent/builder renames can break callers, and local var usage can obscure return types.
AI-written summary · about
chapters (18)
- 0:00Introduction
- 1:04Boilerplate code
- 4:55Lombok setup
- 8:47Code reduction with annotations
- 10:54What is Lombok
- 13:43How Lombok works
- 15:30Barrel class creation
- 18:42Bottle class and annotations
- 21:53Java var feature
- 25:28When var fails
- 26:12Bar class creation
- 32:11Lombok internals
- 37:52Exception handling
- 41:48Logging with Lombok
- 44:14Lombok benefits
- 47:01Lombok drawbacks
- 49:32Usage recommendations
- 51:18Q&A
related talks
54mHot and spicy Java with Lombok. Live!
53mHacking Java
48mDo you know these Libraries?
58mModule Adoption? JDK Build Tool? Lombok? Backwards Compatibility? - Ask the Architects
45mBeyond the Hype: Unpacking the Latest Features of JDK
01h 03mDiscover Modern Java
39mJava's Hidden Gems: Tools and Libraries
48mJava's Hidden Gems: Tools and Libraries
