dropbox / dropbox/dropbox-sdk-java
Use JSR 305 Nullable/Nonnull annotations?
未关闭
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 还没有评估数据。