Skip to content

Commit 9d1281e

Browse files
committed
HADOOP-19411. Fix CheckStyle.
1 parent a37434d commit 9d1281e

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

hadoop-cloud-storage-project/hadoop-cos/src/test/java/org/apache/hadoop/fs/cosn/TestCosNInputStream.java

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ public void testSeek() throws Exception {
7979
for (int i = 0; i != seekTimes; i++) {
8080
long pos = fileSize / (seekTimes - i) - 1;
8181
inputStream.seek(pos);
82-
assertTrue(
83-
inputStream.getPos() == pos, "expected position at: " +
84-
pos + ", but got: " + inputStream.getPos());
82+
assertTrue(inputStream.getPos() == pos,
83+
"expected position at: " +
84+
pos + ", but got: " + inputStream.getPos());
8585
LOG.info("completed seeking at pos: " + inputStream.getPos());
8686
}
8787
LOG.info("begin to random position seeking test...");
@@ -90,9 +90,9 @@ public void testSeek() throws Exception {
9090
long pos = Math.abs(random.nextLong()) % fileSize;
9191
LOG.info("seeking for pos: " + pos);
9292
inputStream.seek(pos);
93-
assertTrue(
94-
inputStream.getPos() == pos, "expected position at: " +
95-
pos + ", but got: " + inputStream.getPos());
93+
assertTrue(inputStream.getPos() == pos,
94+
"expected position at: " +
95+
pos + ", but got: " + inputStream.getPos());
9696
LOG.info("completed seeking at pos: " + inputStream.getPos());
9797
}
9898
}
@@ -113,9 +113,9 @@ public void testGetPos() throws Exception {
113113
Random random = new Random();
114114
long pos = Math.abs(random.nextLong()) % fileSize;
115115
inputStream.seek(pos);
116-
assertTrue(
117-
inputStream.getPos() == pos, "expected position at: " +
118-
pos + ", but got: " + inputStream.getPos());
116+
assertTrue(inputStream.getPos() == pos,
117+
"expected position at: " +
118+
pos + ", but got: " + inputStream.getPos());
119119
LOG.info("completed get pos tests.");
120120
}
121121

@@ -157,7 +157,8 @@ public void testRead() throws Exception {
157157

158158
if (bytesRead % (1 * Unit.MB) == 0) {
159159
int available = inputStream.available();
160-
assertTrue((fileSize - bytesRead) == available, "expected remaining: " + (fileSize - bytesRead) +
160+
assertTrue((fileSize - bytesRead) == available,
161+
"expected remaining: " + (fileSize - bytesRead) +
161162
" but got: " + available);
162163
LOG.info("Bytes read: " +
163164
Math.round((double) bytesRead / Unit.MB) + "MB");

0 commit comments

Comments
 (0)