> +import java.util.List;
> +
> +public class BlobHelper {
> +
> +   public static void deleteContainerIfExists(String storage, String key, 
> String containerName) {
> +      final AzureBlobClient azureBlob = 
> ContextBuilder.newBuilder("azureblob")
> +              .credentials(storage, key)
> +              .buildApi(AzureBlobClient.class);
> +
> +      azureBlob.deleteContainer(containerName);
> +
> +      try {
> +         azureBlob.close();
> +      } catch (IOException e) {
> +         e.printStackTrace();
> +      }

You could just use `Closeables2.closeQuietly(azureBlob);`

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/305/files/93cecad810be0366709b28b2dbf3259efe10dec2#r73308646

Reply via email to