Matt Sicker created LOG4J2-3448:
-----------------------------------

             Summary: Add nullability-related annotations for better 
documentation and static analysis
                 Key: LOG4J2-3448
                 URL: https://issues.apache.org/jira/browse/LOG4J2-3448
             Project: Log4j 2
          Issue Type: Improvement
          Components: API
            Reporter: Matt Sicker


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.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to