Skip to content

Commit d1aeb30

Browse files
committed
test: add suppression for PMD warning in InputStreamLineReaderTest
1 parent 2bbb087 commit d1aeb30

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

area-rectangular-room/src/test/java/dev/delivercraft/rectangular/InputStreamLineReaderTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ void readLine_GivenInput_ShouldReturnInputLine() {
3535

3636
@Test
3737
void readLine_GivenNullInputStream_ShouldThrowException() throws IOException {
38+
@SuppressWarnings("PMD.CloseResource") // This is to simulate a closed stream for testing
3839
InputStream inputStream = InputStream.nullInputStream();
3940
inputStream.close();
4041

0 commit comments

Comments
 (0)