Skip to content

Commit 493062e

Browse files
committed
HADOOP-19421. Fix CheckStyle Issue.
1 parent 02c3b5e commit 493062e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

hadoop-tools/hadoop-aliyun/src/test/java/org/apache/hadoop/fs/aliyun/oss/TestAliyunOSSBlockOutputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ public void testDirectoryAllocator() throws Throwable {
267267
LinkedHashSet<String> files = (LinkedHashSet<String>)field.get(name);
268268
assertTrue(files.isEmpty(), "in DeleteOnExitHook");
269269
assertFalse(
270-
(new ArrayList<>(files)).contains(tmp.getPath()), "in DeleteOnExitHook");
270+
(new ArrayList<>(files)).contains(tmp.getPath()), "in DeleteOnExitHook");
271271
} catch (Exception e) {
272272
e.printStackTrace();
273273
}

hadoop-tools/hadoop-aliyun/src/test/java/org/apache/hadoop/fs/aliyun/oss/TestAliyunOSSFileSystemContract.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public void testRootDirAlwaysExists() throws Exception {
7575
//this catches overrides of the base exists() method that don't
7676
//use getFileStatus() as an existence probe
7777
assertTrue(
78-
fs.exists(super.path("/")), "FileSystem.exists() fails for root");
78+
fs.exists(super.path("/")), "FileSystem.exists() fails for root");
7979
}
8080

8181
@Test
@@ -355,18 +355,18 @@ public void testGetFileStatusFileAndDirectory() throws Exception {
355355
this.createFile(filePath);
356356
assertTrue(this.fs.getFileStatus(filePath).isFile(), "Should be file");
357357
assertFalse(
358-
this.fs.getFileStatus(filePath).isDirectory(), "Should not be directory");
358+
this.fs.getFileStatus(filePath).isDirectory(), "Should not be directory");
359359

360360
Path dirPath = this.path("/test/oss/dir");
361361
this.fs.mkdirs(dirPath);
362362
assertTrue(
363-
this.fs.getFileStatus(dirPath).isDirectory(), "Should be directory");
363+
this.fs.getFileStatus(dirPath).isDirectory(), "Should be directory");
364364
assertFalse(this.fs.getFileStatus(dirPath).isFile(), "Should not be file");
365365

366366
Path parentPath = this.path("/test/oss");
367367
for (FileStatus fileStatus: fs.listStatus(parentPath)) {
368368
assertTrue(
369-
fileStatus.getModificationTime() > 0L, "file and directory should be new");
369+
fileStatus.getModificationTime() > 0L, "file and directory should be new");
370370
}
371371
}
372372

hadoop-tools/hadoop-aliyun/src/test/java/org/apache/hadoop/fs/aliyun/oss/yarn/TestOSS.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ public void testOSSStatus() throws Exception {
6363
FsStatus fsStatus = fc.getFsStatus(null);
6464
assertNotNull(fsStatus);
6565
assertTrue(
66-
fsStatus.getUsed() >= 0, "Used capacity should be positive: " + fsStatus.getUsed());
66+
fsStatus.getUsed() >= 0, "Used capacity should be positive: " + fsStatus.getUsed());
6767
assertTrue(
68-
fsStatus.getRemaining() >= 0, "Remaining capacity should be positive: " + fsStatus
68+
fsStatus.getRemaining() >= 0, "Remaining capacity should be positive: " + fsStatus
6969
.getRemaining());
7070
assertTrue(
71-
fsStatus.getCapacity() >= 0, "Capacity should be positive: " + fsStatus.getCapacity());
71+
fsStatus.getCapacity() >= 0, "Capacity should be positive: " + fsStatus.getCapacity());
7272
}
7373

7474
@Test

0 commit comments

Comments
 (0)