Skip to content

Commit

Permalink
Fixing checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan Stolojan committed Sep 28, 2021
1 parent b371a23 commit 5710a88
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/**
* Represents an Arn Resource, this can be an accesspoint or bucket.
*/
public class ArnResource {
public final class ArnResource {

/**
* Resource name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ public void shouldBeAbleToSwitchOnS3PathStyleAccessViaConfigProperty()
throw e;
}

GenericTestUtils.assertExceptionContains(AP_ILLEGAL_ACCESS , e);
GenericTestUtils.assertExceptionContains(AP_ILLEGAL_ACCESS, e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@

import org.apache.hadoop.fs.s3a.impl.ChangeDetectionPolicy;
import org.apache.hadoop.fs.s3a.impl.ContextAccessors;
import org.apache.hadoop.fs.s3a.impl.InternalConstants;
import org.apache.hadoop.fs.s3a.impl.StatusProbeEnum;
import org.apache.hadoop.fs.s3a.impl.StoreContext;
import org.apache.hadoop.fs.s3a.impl.StoreContextBuilder;
Expand Down Expand Up @@ -264,7 +263,7 @@ private static void skipIfS3GuardAndS3CSEEnabled(Configuration conf) {
* @param messages messages found in the PathIOE that trigger a test to skip
* @throws PathIOException Throws PathIOE if it doesn't relate to any message in {@code messages}.
*/
public static void skipIfIOEContainsMessage(PathIOException ioe, String ...messages)
public static void skipIfIOEContainsMessage(PathIOException ioe, String...messages)
throws PathIOException {
for (String message: messages) {
if (ioe.toString().contains(message)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ public void parseAccessPointFromArn() throws IllegalArgumentException {
String accessPoint = "testAp";
String accountId = "123456789101";
String[][] regionPartitionEndpoints = new String[][] {
{ Regions.EU_WEST_1.getName(), "aws", "s3-accesspoint.eu-west-1.amazonaws.com" },
{ Regions.US_GOV_EAST_1.getName(), "aws-us-gov", "s3-accesspoint.us-gov-east-1.amazonaws.com" },
{ Regions.CN_NORTH_1.getName(), "aws-cn", "s3-accesspoint.cn-north-1.amazonaws.com.cn" },
{Regions.EU_WEST_1.getName(), "aws", "s3-accesspoint.eu-west-1.amazonaws.com"},
{Regions.US_GOV_EAST_1.getName(), "aws-us-gov",
"s3-accesspoint.us-gov-east-1.amazonaws.com"},
{Regions.CN_NORTH_1.getName(), "aws-cn", "s3-accesspoint.cn-north-1.amazonaws.com.cn"},
};

for (String[] testPair : regionPartitionEndpoints) {
Expand Down

0 comments on commit 5710a88

Please sign in to comment.