Skip to content

use jakarta.annotation to document nullability of APIs #725

@gavinking

Description

@gavinking

As an experiment, I tried using @Nullable and @Nonnull to specify the null typing of methods of our APIs and ... I don't hate the results.

This is useful:

  1. as documentation / specification (in some cases, we're not very explicit)
  2. for tools like IntelliJ which are able to use these annotations to analyze client code

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions