Use JSR 305 Nullable/Nonnull annotations?
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start with the DbxClient API examples in the issue and inspect linked pull request #561 to understand the current implementation status. Check how startGetFile and getMetadata are declared, then review the surrounding public API for other nullable values. Done means the intended JSR 305 annotations are applied consistently and the API builds successfully.
Written by the indexing model from the issue text.
Description
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:
@Nonnull
DbxClient.Downloader startGetFile(String path, @Nullable String rev)
.getMetadata()can return null:
@Nullable
DbxEntry getMetadata(String path)
- Dominant language
- Java
- Stars
- 627
- Forks
- 463
- Avg merge
- 5m
- Merged PRs (30d)
- 10
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dropbox/dropbox-sdk-java
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
dropbox/dropbox-sdk-java#536 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
dropbox/dropbox-sdk-java#560 · 6 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
dropbox/dropbox-sdk-java#550 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 15/100
dropbox/dropbox-sdk-java#542 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
dropbox/dropbox-sdk-java#535 · 1 comment ·
All issues in dropbox/dropbox-sdk-java
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100