Follow-up to Azureblob cleanup

See discussion at https://github.com/jclouds/jclouds/pull/66
This commit is contained in:
Andrew Phillips 2013-07-17 10:19:43 -04:00 committed by Andrew Gaul
parent a6f6f04d75
commit 2ebde8c556
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ public class AzureBlobBlockUploadStrategy implements MultipartUploadStrategy {
blockIds.add(blockId);
client.putBlock(container, blobName, blockId, block);
}
checkState(bytesWritten == length, "Wrote " + bytesWritten + " bytes, but we wanted to write " + length + " bytes");
checkState(bytesWritten == length, "Wrote %s bytes, but we wanted to write %s bytes", bytesWritten, length);
return client.putBlockList(container, blobName, blockIds);
}
}

View File

@ -33,7 +33,7 @@ import org.jclouds.predicates.Validator;
@Singleton
public class BlockIdValidator extends Validator<String> {
@Override
public void validate(String s) throws IllegalArgumentException {
public void validate(@Nullable String s) throws IllegalArgumentException {
if (s == null || s.length() > 64)
throw new IllegalArgumentException("block id:" + s + "; Block Ids must be less than or equal to 64 bytes in size");