> +
> +/**
> + * Fallback used when deleting a vault.
> + *
> + * @author Roman Coedo
> + */
> +public class FalseIfVaultNotEmpty implements Fallback<Boolean> {
> +
> + @Override
> + public ListenableFuture<Boolean> create(Throwable t) throws Exception {
> + return immediateFuture(createOrPropagate(t));
> + }
> +
> + @Override
> + public Boolean createOrPropagate(Throwable t) throws Exception {
> + if (getFirstThrowableOfType(checkNotNull(t, "throwable"),
> IllegalArgumentException.class) != null)
Can `t` ever be `null` here?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-aws/pull/4/files#r13034684