Tagged articles

SuperBuilder

2 articles · Page 1 of 1
Tinker Programmer
Tinker Programmer
Jun 21, 2026 · Fundamentals

Master Java Builder Pattern and Avoid Lombok @Builder & @SuperBuilder Pitfalls

This article explains why telescoping constructors and JavaBean setters are problematic, demonstrates a hand‑written Builder implementation based on Effective Java, shows how Lombok @Builder simplifies code, and warns about two common Lombok pitfalls—default values and inheritance—while offering practical solutions.

Builder PatternDesign PatternsEffective Java
0 likes · 12 min read
Master Java Builder Pattern and Avoid Lombok @Builder & @SuperBuilder Pitfalls
Java Backend Technology
Java Backend Technology
Jan 7, 2021 · Backend Development

Why @Builder Fails with Inherited Fields and How @SuperBuilder Solves It

This article explains the limitations of Lombok's @Builder annotation when dealing with inherited fields, demonstrates the issue with a sample ItemDTO class, and shows how the newer @SuperBuilder annotation overcomes these constraints by correctly handling superclass members, including code examples and internal implementation details.

Builder PatternJavaSuperBuilder
0 likes · 9 min read
Why @Builder Fails with Inherited Fields and How @SuperBuilder Solves It