dropbox / dropbox/dropbox-sdk-java
Use JSR 305 Nullable/Nonnull annotations?
Aperta
dropbox
enhancement
- Lingua principale
- Java
- Stelle
- 627
- Fork
- 463
- Merge medio
- 5m
- PR unite (30g)
- 10
Descrizione
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)
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.