r/SpringBoot • u/Delicious_Detail_547 • Apr 01 '26
How-To/Tutorial What if Java had Kotlin-style null-safety without migrating your Spring Boot project to Kotlin?
Hey r/SpringBoot,
I've been working on JADEx (Java Advanced Development Extension) which is a safety layer that makes Java safer by adding Null-Safety and Final-by-Default semantics without rewriting Java codes and modifying the JVM.
Quick recap of what JADEx adds to Java:
String?nullable type declaration?.null-safe access operator?:Elvis operatorapply readonlyfinal-by-default mode per file
Today I'm sharing three things that just landed.
1. Lombok support
This was the most requested thing. JADEx now integrates with Lombok via a Delombok pipeline internally. The key motivation: JADEx's nullability checker needs to see Lombok-generated code (getters, builders, constructors) to avoid blind spots. Without Delombok, nullable fields could silently pass through generated methods unchecked.
After Delombok, JADEx sees and analyzes the generated code:
// Lombok-generated — JADEx propagates @Nullable into these
public String
public UserBuilder
public UserBuilder
2. Gradle plugin published
The JADEx Gradle plugin is now on Maven Central and the Gradle Plugin Portal.
plugins {
id 'io.github.nieuwmijnleven.jadex' version '0.628'
}
jadex {
sourceDir = 'src/main/jadex'
}
That's the only change needed to an existing Spring Boot project. Everything else (compilation, Delombok pipeline, .java generation) is handled automatically.
3. JADEx Spring Boot example project
-
full description
-
source repository
We highly welcome your feedback on JADEx.
Thank you.
View all comments
Show parent comment
1
u/Delicious_Detail_547 Apr 05 '26
JADEx strengthens the type system itself. Since
StringandString?are treated as different types at the compiler level, passing a nullable value where a non-null is expected is caught at compile time. This is a structural enforcement rather than a runtime check or a simple coding convention.Optional does not work this way. It is a runtime wrapper instead of a type-level constraint. Because you can still pass
nulldirectly or forget to wrap a value, it helps but does not strictly enforce safety.Regarding Kotlin migration, LLMs can speed up the conversion process, but they do not eliminate the verification cost. Every converted file still needs to be reviewed and tested. For a large legacy codebase, those costs add up fast. Furthermore, a single subtle Java/Kotlin interop issue can take days to track down.
JADEx is a much more cost-effective path for companies that need to improve the stability of existing Java codebases without taking on migration risks. You get compile-time null-safety with JADEx while your existing code, tests, and team knowledge stay intact.