Skip to content

Commit 9083eab

Browse files
committed
fixed findingBugs
1 parent fae4b19 commit 9083eab

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

hadoop-hdds/client/src/test/java/org/apache/hadoop/hdds/scm/storage/DummyBlockInputStreamWithRetry.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* A dummy BlockInputStream with pipeline refresh function to mock read
4141
* block call to DN.
4242
*/
43-
@SuppressWarnings("ResultOfMethodCallIgnored")
43+
@SuppressWarnings("java:S2201")
4444
final class DummyBlockInputStreamWithRetry
4545
extends DummyBlockInputStream {
4646

hadoop-hdds/client/src/test/java/org/apache/hadoop/hdds/scm/storage/TestBlockInputStream.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ public void testRefreshPipelineFunction() throws Exception {
293293

294294
@ParameterizedTest
295295
@MethodSource("exceptionsTriggersRefresh")
296-
@SuppressWarnings("ResultOfMethodCallIgnored")
296+
@SuppressWarnings("java:S2201")
297297
void refreshesPipelineOnReadFailure(IOException ex) throws Exception {
298298
// GIVEN
299299
Pipeline pipeline = MockPipeline.createSingleNodePipeline();
@@ -407,7 +407,7 @@ public void testReadNotRetriedOnOtherException(IOException ex)
407407

408408
@ParameterizedTest
409409
@MethodSource("exceptionsTriggersRefresh")
410-
@SuppressWarnings("ResultOfMethodCallIgnored")
410+
@SuppressWarnings("java:S2201")
411411
public void testRefreshOnReadFailureAfterUnbuffer(IOException ex)
412412
throws Exception {
413413
// GIVEN

hadoop-hdds/client/src/test/java/org/apache/hadoop/ozone/client/io/TestBlockInputStreamFactoryImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public class TestBlockInputStreamFactoryImpl {
5151
private OzoneConfiguration conf = new OzoneConfiguration();
5252

5353
@Test
54-
@SuppressWarnings("ResultOfMethodCallIgnored")
54+
@SuppressWarnings("java:S2201")
5555
public void testNonECGivesBlockInputStream() throws IOException {
5656
BlockInputStreamFactory factory = new BlockInputStreamFactoryImpl();
5757
ReplicationConfig repConfig =

0 commit comments

Comments
 (0)