dropbox / dropbox/dropbox-sdk-java

Use JSR 305 Nullable/Nonnull annotations?

Đang mở
#17 2 bình luận 0 reaction 0 người được giao Được @joshafeinberg nhận Xem trên GitHub
dropbox enhancement
Ngôn ngữ chính
Java
Star
627
Fork
463
Merge trung bình
5 phút
Pull request đã merge (30 ngày)
10

Mô tả

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)
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.