Tag

Compile-time Annotation

0 views collected around this technical thread.

Sanyou's Java Diary
Sanyou's Java Diary
Mar 28, 2024 · Backend Development

Why Lombok’s @Builder Drops Default Values and How to Fix It

This article walks through a real‑world NPE caused by Lombok’s @Builder ignoring field initializers, explains the underlying double‑initialisation bug, shows how @Builder.Default restores the defaults, and outlines Lombok’s compile‑time annotation processing mechanism.

Builder PatternCompile-time AnnotationJava
0 likes · 15 min read
Why Lombok’s @Builder Drops Default Values and How to Fix It
vivo Internet Technology
vivo Internet Technology
Jul 21, 2021 · Mobile Development

Understanding and Implementing Compile-Time Annotations in Android Development

The article explains how compile‑time annotation processors in Android replace costly runtime reflection by generating binding classes during build time, showing step‑by‑step code examples, JavaPoet/KotlinPoet usage, and the performance benefits for cleaner, faster, maintainable apps.

AndroidCompile-time AnnotationJava
0 likes · 16 min read
Understanding and Implementing Compile-Time Annotations in Android Development