You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by Andrew Gaul <no...@github.com> on 2015/01/14 20:44:01 UTC

[jclouds] Add @Nullable attribute to BlobStore methods (#645)

blobMetadata and getBlob return null when a blob does not exist and
callers should check for this.
You can merge this Pull Request by running:

  git pull https://github.com/andrewgaul/jclouds blobstore-nullable

Or you can view, comment on it, or merge it online at:

  https://github.com/jclouds/jclouds/pull/645

-- Commit Summary --

  * Add @Nullable attribute to BlobStore methods

-- File Changes --

    M blobstore/src/main/java/org/jclouds/blobstore/BlobStore.java (3)

-- Patch Links --

https://github.com/jclouds/jclouds/pull/645.patch
https://github.com/jclouds/jclouds/pull/645.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/645

Re: [jclouds] Add @Nullable attribute to BlobStore methods (#645)

Posted by Andrew Gaul <no...@github.com>.
Theoretically FindBugs consumes these attributes and can prevent NullPointerExceptions although it seems to prefer the `@CheckForNull` annotation.  The `putbBlob` methods may benefit from this as well although I am not familiar with any object store returning `null` ETags.

@kahing relevant to your interests.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/645#issuecomment-69978607

Re: [jclouds] Add @Nullable attribute to BlobStore methods (#645)

Posted by Ka-Hing Cheung <no...@github.com>.
:+1: 

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/645#issuecomment-69979089