Skip to content

Commit 0cd8c8c

Browse files
committed
checkstyle
1 parent 95b0f9d commit 0cd8c8c

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/AzureBlobFileSystemStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ public void setPathProperties(final Path path,
545545
final AbfsRestOperation op = client
546546
.setPathProperties(getRelativePath(path), commaSeparatedProperties,
547547
tracingContext, encryptionAdapter);
548-
if(encryptionAdapter != null) {
548+
if (encryptionAdapter != null) {
549549
encryptionAdapter.destroy();
550550
}
551551
perfInfo.registerResult(op.getResult()).registerSuccess(true);

hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/security/EncodingHelper.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
* */
2929
public final class EncodingHelper {
3030

31+
private EncodingHelper() {
32+
33+
}
34+
3135
public static byte[] getSHA256Hash(byte[] key) {
3236
try {
3337
final MessageDigest digester = MessageDigest.getInstance("SHA-256");

hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/utils/NamespaceUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* Utility class to provide method which can return if the account is namespace
3333
* enabled or not.
3434
* */
35-
public class NamespaceUtil {
35+
public final class NamespaceUtil {
3636

3737
public static final Logger LOG = LoggerFactory.getLogger(NamespaceUtil.class);
3838

hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/ITestAbfsCustomEncryption.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public void testCustomEncryptionCombinations() throws Exception {
204204
.isEqualTo(cpkSHAEncoded);
205205
}
206206
} else {
207-
if(isCpkResponseKeyExpected) {
207+
if (isCpkResponseKeyExpected) {
208208
if (requestEncryptionType == ENCRYPTION_CONTEXT) {
209209
String encryptionContext = ecp.getEncryptionContextForTest(relativePath);
210210
String expectedKeySHA = EncodingHelper.getBase64EncodedString(
@@ -348,7 +348,7 @@ private AbfsRestOperation callOperation(AzureBlobFileSystem fs,
348348
private EncryptionAdapter createEncryptionAdapterFromServerStoreContext(final String path,
349349
final TracingContext tracingContext,
350350
final AbfsClient client) throws IOException {
351-
if(client.getEncryptionType() != ENCRYPTION_CONTEXT) {
351+
if (client.getEncryptionType() != ENCRYPTION_CONTEXT) {
352352
return null;
353353
}
354354
final String responseHeaderEncryptionContext = client.getPathStatus(path,
@@ -452,7 +452,7 @@ private EncryptionContextProvider createEncryptedFile(Path testPath) throws Exce
452452
@Override
453453
public void teardown() throws Exception {
454454
super.teardown();
455-
for(AzureBlobFileSystem azureBlobFileSystem : fileSystemsOpenedInTest) {
455+
for (AzureBlobFileSystem azureBlobFileSystem : fileSystemsOpenedInTest) {
456456
azureBlobFileSystem.close();
457457
}
458458
}

hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/services/AbfsClientUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
import org.apache.hadoop.fs.azurebfs.extensions.EncryptionContextProvider;
2222

23-
public class AbfsClientUtils {
23+
public final class AbfsClientUtils {
2424
private AbfsClientUtils() {
2525

2626
}

0 commit comments

Comments
 (0)