Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-3448

Add nullability-related annotations for better documentation and static analysis

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • API
    • 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

          Activity

            People

              Unassigned Unassigned
              mattsicker Matt Sicker
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: