Skip to content

Commit dffccfd

Browse files
kinowlesv
authored andcommitted
Fix a trivial typo and remove redundancy (#93)
1 parent a7cbc05 commit dffccfd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

oauth2_http/java/com/google/auth/oauth2/OAuth2Credentials.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ private boolean shouldRefresh() {
181181
public AccessToken refreshAccessToken() throws IOException {
182182
throw new IllegalStateException("OAuth2Credentials instance does not support refreshing the"
183183
+ " access token. An instance with a new access token should be used, or a derived type"
184-
+ " that supports refreshing should be used.");
184+
+ " that supports refreshing.");
185185
}
186186

187187
/**

oauth2_http/java/com/google/auth/oauth2/ServiceAccountCredentials.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ public static ServiceAccountCredentials fromStream(InputStream credentialsStream
275275
@Override
276276
public AccessToken refreshAccessToken() throws IOException {
277277
if (createScopedRequired()) {
278-
throw new IOException("Scopes not configured for service account. Scoped should be specifed"
278+
throw new IOException("Scopes not configured for service account. Scoped should be specified"
279279
+ " by calling createScoped or passing scopes to constructor.");
280280
}
281281

0 commit comments

Comments
 (0)