|
|
|
|
|
by mrighele
2461 days ago
|
|
You can try checkerframework [1], which uses annotations to perform extra typechecking at compile time, including nullable/not-nullable checks.
Works properly altough it has a few issues: the biggest is that support is still stuck at java 8, and the framework is sometimes not smart enough to see that you already checked if a nullable field is null or not and you can safely use it. [1] https://checkerframework.org/ |
|