Skip to content

Commit d115ef9

Browse files
committed
lint fixes.
1 parent c436e7f commit d115ef9

3 files changed

Lines changed: 5 additions & 8 deletions

File tree

google-auth-library-java/oauth2_http/java/com/google/auth/mtls/MtlsUtils.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ public static boolean canBeEnabled(
191191
* Resolves the mutual TLS (mTLS) certificate configuration file.
192192
*
193193
* <p>The configuration file is resolved in the following order of precedence:
194+
*
194195
* <ol>
195196
* <li>The developer-provided {@code certConfigPathOverride} (if not null).
196197
* <li>The path specified by the {@code GOOGLE_API_CERTIFICATE_CONFIG} environment variable.
@@ -295,7 +296,7 @@ public static HttpTransportFactory prepareTransportFactoryIfMtlsEnabled(
295296
// Keep using it as-is without re-initializing.
296297
return baseTransportFactory;
297298
}
298-
299+
299300
if (baseTransportFactory == OAuth2Utils.HTTP_TRANSPORT_FACTORY) {
300301
// This is the default HttpTransportFactory assigned by credentials.
301302
// Automatically discover and load client certificates to construct an mTLS factory.
@@ -304,7 +305,7 @@ public static HttpTransportFactory prepareTransportFactoryIfMtlsEnabled(
304305
KeyStore mtlsKeyStore = x509Provider.getKeyStore();
305306
return new MtlsHttpTransportFactory(mtlsKeyStore);
306307
}
307-
308+
308309
// A user configured non-mTLS HttpTransportFactory was explicitly injected.
309310
// Reject it to avoid bypassing mTLS enforcement or overriding the user's factory.
310311
throw new IOException(

google-auth-library-java/oauth2_http/javatests/com/google/auth/mtls/MtlsUtilsTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,7 @@ public String getEnv(String name) {
320320
};
321321
PropertyProvider propProvider = (name, def) -> def;
322322

323-
assertThrows(
324-
IOException.class, () -> MtlsUtils.canBeEnabled(envProvider, propProvider, null));
323+
assertThrows(IOException.class, () -> MtlsUtils.canBeEnabled(envProvider, propProvider, null));
325324
}
326325

327326
// If the well-known gcloud certificate configuration file exists, canBeEnabled should return

google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/GoogleCredentialsTest.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,6 @@ public void regionalAccessBoundary_shouldFailOpenWhenRefreshCannotBeStarted() th
12201220
assertNull(headers.get(X_ALLOWED_LOCATIONS_HEADER_KEY));
12211221
}
12221222

1223-
12241223
@Test
12251224
public void regionalAccessBoundary_deduplicationOfConcurrentRefreshes()
12261225
throws IOException, InterruptedException {
@@ -1368,9 +1367,7 @@ private static class TestRegionalCredentials extends GoogleCredentials
13681367
}
13691368

13701369
TestRegionalCredentials(
1371-
AccessToken token,
1372-
EnvironmentProvider envProvider,
1373-
HttpTransportFactory transportFactory) {
1370+
AccessToken token, EnvironmentProvider envProvider, HttpTransportFactory transportFactory) {
13741371
super(GoogleCredentials.newBuilder().setAccessToken(token));
13751372
this.envProvider = envProvider;
13761373
this.transportFactory = transportFactory;

0 commit comments

Comments
 (0)