Repository: jclouds
Updated Branches:
  refs/heads/master ade72d44e -> 0512fc6e3


Add @Nullable attribute to BlobStore methods

blobMetadata and getBlob return null when a blob does not exist and
callers should check for this.


Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/0512fc6e
Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/0512fc6e
Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/0512fc6e

Branch: refs/heads/master
Commit: 0512fc6e35a6ba8b29d0959eb993d461dfdb76ad
Parents: ade72d4
Author: Andrew Gaul <[email protected]>
Authored: Wed Jan 14 11:34:01 2015 -0800
Committer: Andrew Gaul <[email protected]>
Committed: Fri Jan 16 15:06:16 2015 -0800

----------------------------------------------------------------------
 blobstore/src/main/java/org/jclouds/blobstore/BlobStore.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jclouds/blob/0512fc6e/blobstore/src/main/java/org/jclouds/blobstore/BlobStore.java
----------------------------------------------------------------------
diff --git a/blobstore/src/main/java/org/jclouds/blobstore/BlobStore.java 
b/blobstore/src/main/java/org/jclouds/blobstore/BlobStore.java
index 5dde0cd..1889c35 100644
--- a/blobstore/src/main/java/org/jclouds/blobstore/BlobStore.java
+++ b/blobstore/src/main/java/org/jclouds/blobstore/BlobStore.java
@@ -230,6 +230,7 @@ public interface BlobStore {
     * @throws ContainerNotFoundException
     *            if the container doesn't exist
     */
+   @Nullable
    BlobMetadata blobMetadata(String container, String name);
 
    /**
@@ -243,6 +244,7 @@ public interface BlobStore {
     * @throws ContainerNotFoundException
     *            if the container doesn't exist
     */
+   @Nullable
    Blob getBlob(String container, String name);
 
    /**
@@ -258,6 +260,7 @@ public interface BlobStore {
     * @throws ContainerNotFoundException
     *            if the container doesn't exist
     */
+   @Nullable
    Blob getBlob(String container, String name, GetOptions options);
 
    /**

Reply via email to