NullAway
NullAway is a Java tool designed to reduce NullPointerExceptions (NPEs) by enforcing nullability checks. By adding `@Nullable` annotations to fields, method parameters, or return values that can be null, NullAway ensures that any dereferenced pointers are not null. It operates similarly to Kotlin and Swift's nullability checks, as well as Java's Checker Framework and Eradicate null checkers.
NullAway is efficient, with a build-time overhead typically under 10%, as it integrates with Error Prone and runs during builds. While not eliminating all NPEs, it catches most in production with minimal annotation effort.
https://github.com/uber/NullAway
Comments
Post a Comment