Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
Description
Nullability annotations can be used by static analysis tools, IDEs, and even Kotlin, to better check for potential NullPointerException errors or redundant null checks. To avoid introducing an additional dependency here, these annotations can be defined in the API. At minimum, some form of @Nonnull and @Nullable should be added.
Alternatively, as these are compile-time annotations anyways, it may be possible to use a third-party annotation library here as long as it's also compile-time only.
Attachments
Issue Links
- duplicates
-
LOG4J2-1477 @NonNull support (for @NonNullByDefault or similar)
- In Progress