dropbox / dropbox/dropbox-sdk-java

Use JSR 305 Nullable/Nonnull annotations?

未关闭
#17 2 条评论 0 个 reaction 已指派 0 人 已被 @joshafeinberg 认领 在 GitHub 查看
dropbox enhancement
主要语言
Java
星标
627
派生
463
平均合并
5 分钟
30 天内合并 PR
10

描述

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:

``` java
@Nonnull
DbxClient.Downloader startGetFile(String path, @Nullable String rev)
```
- `.getMetadata()` can return null:

``` java
@Nullable
DbxEntry getMetadata(String path)
```

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。