dropbox / dropbox/dropbox-sdk-java
Use JSR 305 Nullable/Nonnull annotations?
オープン
dropbox
enhancement
- 主要言語
- Java
- スター
- 627
- フォーク
- 463
- 平均マージ
- 5分
- マージ済み PR(30日)
- 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 はまだ評価されていません。