> +                        Throwables.propagate(e);
> +                     }
> +                     serialPortContents = 
> instanceApi.getSerialPortOutput(instance.get().name(), 4).contents();
> +                     String[] contentEntries = 
> serialPortContents.split("\n");
> +                     passwordDict = new 
> Gson().fromJson(contentEntries[contentEntries.length - 1], Map.class);
> +                  }
> +                  return passwordDict.get("encryptedPassword");
> +               }
> +            }, 5, TimeUnit.MINUTES, false); // Notice that timeoutDuration 
> should be less than EXPIRE_DURATION
> +         } catch (Exception e) {
> +            throw Throwables.propagate(e);
> +         }
> +
> +         return decryptPassword(checkNotNull(encryptedPassword, 
> "encryptedPassword shouldn't be null"), keys);
> +
> +      } catch (NoSuchAlgorithmException e) {

what's the benefit of multiple catches?

---
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-google/pull/170/files/172e50d1a163c5ba80ed638cf9c7b25982ca204c#r58841675

Reply via email to