Skip to content

Commit 8b9448c

Browse files
committed
fix checkstyle problem.
1 parent e78ad53 commit 8b9448c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSClientFaultInjector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,6 @@ public void delayWhenRenewLeaseTimeout() {}
7272
public void onCreateBlockReader(LocatedBlock block, int chunkIndex, long offset, long length) {}
7373

7474
public void failCreateBlockReader() throws InvalidBlockTokenException {}
75-
75+
7676
public void failCreateBlockReader(int curRetryCounts) throws IOException {}
7777
}

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSStripedInputStream.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,9 @@ public void failCreateBlockReader(int curRetryCounts) throws IOException {
777777
byte[] readBuf = new byte[6 * 1024 * 1024];
778778
try (FSDataInputStream fsdis = dfs.open(
779779
new Path(testBaseDir + Path.SEPARATOR + testfileName))) {
780-
while ((fsdis.read(readBuf)) > 0) {}
780+
while ((fsdis.read(readBuf)) > 0) {
781+
// Do nothing.
782+
}
781783
}
782784
assertTrue(dfs.delete(new Path(testBaseDir + Path.SEPARATOR + testfileName), true));
783785
} finally {

0 commit comments

Comments
 (0)