> +         final String fullPath = parentIsFolder(options, md) ? 
> options.getDir()
> +               + "/" + md.getName() : md.getName();
> +
> +            // Attempt to acquire a semaphore within the time limit. At least
> +            // one outstanding future should complete within this period for 
> the
> +            // semaphore to be acquired.
> +         try {
> +            if (!semaphore.tryAcquire(maxTime, TimeUnit.MILLISECONDS)) {
> +               throw new TimeoutException("Timeout waiting for semaphore");
> +            }
> +         } catch (InterruptedException ie) {
> +            logger.debug("Interrupted while deleting blobs");
> +            Thread.currentThread().interrupt();
> +         }
> +
> +         final ListenableFuture<Void> blobDelFuture;

If you wrap ```blobDelFuture``` in an ```Optional``` will this remove some of 
the duplicated null assignments?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/214/files#r10940709

Reply via email to