> + private final AzureBlobClient client;
> + private final PayloadSlicer slicer;
> +
> + @Inject
> + public AzureBlobBlockUploadStrategy(AzureBlobClient client, PayloadSlicer
> slicer) {
> + this.client = checkNotNull(client, "client");
> + this.slicer = checkNotNull(slicer, "slicer");
> + }
> +
> + @Override
> + public String execute(String container, Blob blob) {
> + String blobName = blob.getMetadata().getName();
> + Payload payload = blob.getPayload();
> + long length = payload.getContentMetadata().getContentLength();
> + checkNotNull(length,
> + "please invoke
> payload.getContentMetadata().setContentLength(length) prior to azure block
> upload");
How can a `long` be `null`? Should that be `Long` instead?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/52/files#r5154311