Skip to content

Use JSR 305 Nullable/Nonnull annotations? #17

Open
@fge

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions