Skip to content

Commit 8ecaca3

Browse files
committed
fix checkstyle.
1 parent 887777c commit 8ecaca3

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/TestFcHdfsSetUMask.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ public void testCreateRecursiveWithExistingDir(FsPermission umask,
222222
fc.setUMask(umask);
223223
createFile(fc, f);
224224
assertTrue(isFile(fc, f));
225-
assertEquals(expectedPerms , fc.getFileStatus(f).getPermission(), "permissions on file are wrong");
225+
assertEquals(expectedPerms , fc.getFileStatus(f).getPermission(),
226+
"permissions on file are wrong");
226227
}
227228

228229

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFileSystemLinkFallback.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ public void testLSOnRootWithFallbackLinkWithSameMountDirectories()
561561
}
562562
afterFallback.removeAll(beforeFallback);
563563
assertEquals(1, afterFallback.size());
564-
assertEquals( "user2",afterFallback.iterator().next().getName(),
564+
assertEquals("user2",afterFallback.iterator().next().getName(),
565565
"/user2 dir from fallback should be listed.");
566566
}
567567
}

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFileSystemLinkMergeSlash.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,7 @@ public void testConfLinkMergeSlashWithRegularLinks() throws Exception {
190190
fail("Shouldn't allow both merge slash link and regular link on same "
191191
+ "mount table.");
192192
} catch (IOException e) {
193-
assertTrue(
194-
e.getMessage().contains(expectedErrorMsg1) || e.getMessage()
193+
assertTrue(e.getMessage().contains(expectedErrorMsg1) || e.getMessage()
195194
.contains(expectedErrorMsg2), "Unexpected error message: " + e.getMessage());
196195
}
197196
}
@@ -226,7 +225,7 @@ public void testChildFileSystems() throws Exception {
226225
FileSystem fs = FileSystem.get(viewFsUri, conf);
227226
FileSystem[] childFs = fs.getChildFileSystems();
228227
assertEquals(1, childFs.length, "Unexpected number of child filesystems!");
229-
assertEquals(
230-
DistributedFileSystem.class, childFs[0].getClass(), "Unexpected child filesystem!");
228+
assertEquals(DistributedFileSystem.class, childFs[0].getClass(),
229+
"Unexpected child filesystem!");
231230
}
232231
}

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFileSystemOverloadSchemeHdfsFileSystemContract.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ public void testAppend() throws IOException {
114114
@Override
115115
@Test
116116
public void testRenameRootDirForbidden() throws Exception {
117-
assertThrows(AccessControlException.class, () -> {
118-
super.testRenameRootDirForbidden();
119-
});
117+
assertThrows(AccessControlException.class, () -> {
118+
super.testRenameRootDirForbidden();
119+
});
120120
}
121121

122122
@Override

0 commit comments

Comments
 (0)