dropbox / dropbox/dropbox-sdk-java

Use JSR 305 Nullable/Nonnull annotations?

オープン
#17 コメント 2 件 リアクション 0 件 担当者 0 名 @joshafeinberg が担当を希望しています GitHub で見る
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。