Skip to content

Commit 2152287

Browse files
committed
[S3AG] Format code
1 parent 33d7715 commit 2152287

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/DefaultS3ClientFactory.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,10 +376,11 @@ private static Region getS3RegionFromEndpoint(String endpoint) {
376376
}
377377

378378
public static <BuilderT extends S3BaseClientBuilder<BuilderT, ClientT>, ClientT> void
379-
applyS3AccessGrantsConfigurations(BuilderT builder, Configuration conf) {
379+
applyS3AccessGrantsConfigurations(BuilderT builder, Configuration conf) {
380380
boolean s3agEnabled = conf.getBoolean(AWS_S3_ACCESS_GRANTS_ENABLED, false);
381381
if (s3agEnabled) {
382-
boolean s3agFallbackEnabled = conf.getBoolean(AWS_S3_ACCESS_GRANTS_FALLBACK_TO_IAM_ENABLED, false);
382+
boolean s3agFallbackEnabled = conf.getBoolean(
383+
AWS_S3_ACCESS_GRANTS_FALLBACK_TO_IAM_ENABLED, false);
383384
S3AccessGrantsPlugin accessGrantsPlugin =
384385
S3AccessGrantsPlugin.builder().enableFallback(s3agFallbackEnabled).build();
385386
builder.addPlugin(accessGrantsPlugin);

hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/TestS3AccessGrantConfiguration.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333

3434
/**
35-
* Test S3 Access Grants configurations
35+
* Test S3 Access Grants configurations.
3636
*/
3737
public class TestS3AccessGrantConfiguration {
3838

@@ -88,13 +88,15 @@ public void testS3AccessGrantsDisabledByDefaultAsync() {
8888
verifyS3AGPluginDisabled(builder);
8989
}
9090

91-
private <BuilderT extends S3BaseClientBuilder<BuilderT, ClientT>, ClientT> void verifyS3AGPluginEnabled(BuilderT builder) {
91+
private <BuilderT extends S3BaseClientBuilder<BuilderT, ClientT>, ClientT> void
92+
verifyS3AGPluginEnabled(BuilderT builder) {
9293
assertEquals(builder.plugins().size(), 1);
9394
assertEquals(builder.plugins().get(0).getClass().getName(),
9495
"software.amazon.awssdk.s3accessgrants.plugin.S3AccessGrantsPlugin");
9596
}
9697

97-
private <BuilderT extends S3BaseClientBuilder<BuilderT, ClientT>, ClientT> void verifyS3AGPluginDisabled(BuilderT builder) {
98-
assertEquals(builder.plugins().size(),0);
98+
private <BuilderT extends S3BaseClientBuilder<BuilderT, ClientT>, ClientT> void
99+
verifyS3AGPluginDisabled(BuilderT builder) {
100+
assertEquals(builder.plugins().size(), 0);
99101
}
100102
}

0 commit comments

Comments
 (0)