Skip to content

Use JSR 305 Nullable/Nonnull annotations? #17

Description

@fge

Such annotations can help immensely when programming with the API, as it tells the API user what to expect.

Two examples from DbxClient:

  • .startGetFile() can have null as its second argument; it will also never return null; therefore:
@Nonnull
DbxClient.Downloader startGetFile(String path, @Nullable String rev)
  • .getMetadata() can return null:
@Nullable
DbxEntry getMetadata(String path)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions