dropbox / dropbox/dropbox-sdk-java
Use JSR 305 Nullable/Nonnull annotations?
Abierto
dropbox
enhancement
- Lenguaje dominante
- Java
- Estrellas
- 627
- Forks
- 463
- Merge medio
- 5 min
- PR fusionados (30 d)
- 10
Descripción
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)
```
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.