> +      buffer.append(credentialScope).append("\n");
> +      buffer.append(hashedCanonicalRequest);
> +      return buffer.toString();
> +   }
> +
> +   private String formatDateWithoutTimestamp(String date) {
> +      return date.substring(0, 8);
> +   }
> +
> +   private String buildCredentialScope(String dateWithoutTimeStamp) {
> +      StringBuilder buffer = new StringBuilder();
> +      buffer.append(dateWithoutTimeStamp).append("/");
> +      buffer.append(REGION).append("/");
> +      buffer.append(SERVICE).append("/");
> +      buffer.append(TERMINATION_STRING);
> +      return buffer.toString();

Reuse result of ```StringBuffer.append``` instead of using ```buffer``` local 
variable.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-aws/pull/3/files#r12670375

Reply via email to