Hot and spicy Java with Lombok. Live!
summary
Demo shows how Lombok generates constructors, getters/setters, @Builder and other patterns at compile time via annotation processors (javac and Eclipse Java compiler), plus the IDE plugin for completion; using delombok reveals the actual bytecode and produced code. A 3.7KB whiskey class shrinks about fourfold after annotations. Features shown: @Data/@Value, @Accessors, @Singular, @Synchronized, @SneakyThrows, logging annotations. Warnings: equals/hashCode changes, hidden method modifications, need to enable annotation processing and support two compilers, and use magic cautiously.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 4:41What is boilerplate
- 10:17What is Lombok
- 14:29Immutable objects
- 17:16Builder and static methods
- 20:50Creating class Bar
- 24:41Java 9 and @val
- 27:53When not to use @val
- 30:24Method code modification
- 34:17Sneaky throws and exceptions
- 39:01Lombok pros and cons
- 43:16Q&A
related talks
56mHot and spicy Java with Lombok. Live!
53mHacking Java
50mRevealing the magic behind Java annotations
48mDo you know these Libraries?
56mThe Wonders of Java Annotation Processing at Compile Time
46mJava annotation processing magic for muggles
49mOn @annotations - liberate yourselves from demons
58mModule Adoption? JDK Build Tool? Lombok? Backwards Compatibility? - Ask the Architects
