Skip to content

Commit 917a079

Browse files
committed
Fix checkstyle issues related to line length
1 parent ff3f0ae commit 917a079

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

services/sts/src/main/java/software/amazon/awssdk/services/sts/auth/StsCredentialsProvider.java

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ protected StsCredentialsProvider(BaseBuilder<?, ?> builder, String asyncThreadNa
7373
}
7474

7575
/**
76-
* Update the expiring session credentials by calling STS. Invoked by {@link CachedSupplier} when the credentials are close to
77-
* expiring.
76+
* Update the expiring session credentials by calling STS. Invoked by {@link CachedSupplier} when the credentials
77+
* are close to expiring.
7878
*/
7979
private RefreshResult<SessionCredentialsHolder> updateSessionCredentials() {
8080
SessionCredentialsHolder credentials = new SessionCredentialsHolder(getUpdatedCredentials(stsClient));
@@ -97,15 +97,16 @@ public void close() {
9797
}
9898

9999
/**
100-
* The amount of time, relative to STS token expiration, that the cached credentials are considered stale and should no longer be used.
101-
* All threads will block until the value is updated.
100+
* The amount of time, relative to STS token expiration, that the cached credentials are considered stale and
101+
* should no longer be used. All threads will block until the value is updated.
102102
*/
103103
public Duration staleTime() {
104104
return staleTime;
105105
}
106106

107107
/**
108-
* The amount of time, relative to STS token expiration, that the cached credentials are considered close to stale and should be updated.
108+
* The amount of time, relative to STS token expiration, that the cached credentials are considered close to stale
109+
* and should be updated.
109110
*/
110111
public Duration prefetchTime() {
111112
return prefetchTime;
@@ -133,8 +134,8 @@ protected BaseBuilder(Function<B, T> providerConstructor) {
133134
}
134135

135136
/**
136-
* Configure the {@link StsClient} to use when calling STS to update the session. This client should not be shut down
137-
* as long as this credentials provider is in use.
137+
* Configure the {@link StsClient} to use when calling STS to update the session. This client should not be shut
138+
* down as long as this credentials provider is in use.
138139
*
139140
* @param stsClient The STS client to use for communication with STS.
140141
* @return This object for chained calls.
@@ -146,8 +147,9 @@ public B stsClient(StsClient stsClient) {
146147
}
147148

148149
/**
149-
* Configure whether the provider should fetch credentials asynchronously in the background. If this is true, threads are
150-
* less likely to block when credentials are loaded, but additional resources are used to maintain the provider.
150+
* Configure whether the provider should fetch credentials asynchronously in the background. If this is true,
151+
* threads are less likely to block when credentials are loaded, but additional resources are used to maintain
152+
* the provider.
151153
*
152154
* <p>By default, this is disabled.</p>
153155
*/
@@ -158,8 +160,8 @@ public B asyncCredentialUpdateEnabled(Boolean asyncCredentialUpdateEnabled) {
158160
}
159161

160162
/**
161-
* Configure the amount of time, relative to STS token expiration, that the cached credentials are considered stale and should no longer be used.
162-
* All threads will block until the value is updated.
163+
* Configure the amount of time, relative to STS token expiration, that the cached credentials are considered
164+
* stale and should no longer be used. All threads will block until the value is updated.
163165
*
164166
* <p>By default, this is 1 minute.</p>
165167
*/
@@ -170,8 +172,8 @@ public B staleTime(Duration staleTime) {
170172
}
171173

172174
/**
173-
* Configure the amount of time, relative to STS token expiration, that the cached credentials are considered close to stale and should be updated.
174-
* See {@link #asyncCredentialUpdateEnabled}.
175+
* Configure the amount of time, relative to STS token expiration, that the cached credentials are considered
176+
* close to stale and should be updated. See {@link #asyncCredentialUpdateEnabled}.
175177
*
176178
* <p>By default, this is 5 minutes.</p>
177179
*/

0 commit comments

Comments
 (0)