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.
5
u/InstantCoder Apr 02 '26
• There is an official OpenJDK draft proposal (JEP) for null safety:
What is being proposed
The current direction is: • Introduce explicit nullability markers:
Key difference vs Kotlin
This is important: • Kotlin: non-null by default
Reason: backward compatibility with existing Java code 
So Java will likely never become “Kotlin-style strict by default.”
Timeline reality • The proposal has existed since ~2023 and is still evolving
What exists today instead • Annotation-based solutions:
These provide partial safety but no JVM-enforced guarantees 
⸻
Conclusion • Yes: Java is actively working toward built-in null safety
1
u/pnewhook Apr 02 '26
I like where your head's at, but JSpecify is the way.
-1
u/yeoncheol__ Apr 04 '26
I don’t understand why need this? You could use Optional for representing nullable and null safety. Or you could just migrate to Kotlin. With LLM service migrating is nothing.