diff --git a/apis/oauth/src/main/java/org/jclouds/oauth/v2/domain/TokenRequestFormat.java b/apis/oauth/src/main/java/org/jclouds/oauth/v2/domain/TokenRequestFormat.java index 7364561185..25925e4e06 100644 --- a/apis/oauth/src/main/java/org/jclouds/oauth/v2/domain/TokenRequestFormat.java +++ b/apis/oauth/src/main/java/org/jclouds/oauth/v2/domain/TokenRequestFormat.java @@ -33,15 +33,15 @@ public interface TokenRequestFormat { /** * Transforms the provided HttpRequest into a particular token request with a specific format. */ - public R formatRequest(R httpRequest, TokenRequest tokenRequest); + R formatRequest(R httpRequest, TokenRequest tokenRequest); /** * The name of the type of the token request, e.g., "JWT" */ - public String getTypeName(); + String getTypeName(); /** * The claims that must be present in the token request for it to be valid. */ - public Set requiredClaims(); + Set requiredClaims(); } diff --git a/apis/oauth/src/main/java/org/jclouds/oauth/v2/functions/OAuthCredentialsSupplier.java b/apis/oauth/src/main/java/org/jclouds/oauth/v2/functions/OAuthCredentialsSupplier.java index 68476ce35b..e204e8f2bb 100644 --- a/apis/oauth/src/main/java/org/jclouds/oauth/v2/functions/OAuthCredentialsSupplier.java +++ b/apis/oauth/src/main/java/org/jclouds/oauth/v2/functions/OAuthCredentialsSupplier.java @@ -115,7 +115,7 @@ public class OAuthCredentialsSupplier implements Supplier { } catch (UncheckedExecutionException e) { Throwable authorizationException = getFirstThrowableOfType(e, AuthorizationException.class); if (authorizationException != null) { - throw ((AuthorizationException) authorizationException); + throw (AuthorizationException) authorizationException; } throw propagate(e); }