Skip to content

Commit 2ab600c

Browse files
committed
Add @SuppressWarnings("resource").
1 parent 864fb60 commit 2ab600c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/test/java/org/apache/commons/io/output/AppendableWriterTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public void testWriteString() throws Exception {
5959
assertEquals(testData, out.getAppendable().toString());
6060
}
6161

62+
@SuppressWarnings("resource")
6263
@Test
6364
public void testAppendCharSequence() throws Exception {
6465
final String testData = "ABCD";
@@ -69,6 +70,7 @@ public void testAppendCharSequence() throws Exception {
6970
assertEquals(testData + "null", out.getAppendable().toString());
7071
}
7172

73+
@SuppressWarnings("resource")
7274
@Test
7375
public void testAppendSubSequence() throws Exception {
7476
final String testData = "ABCD";
@@ -79,6 +81,7 @@ public void testAppendSubSequence() throws Exception {
7981
assertEquals(testData.substring(1, 3) + "ul", out.getAppendable().toString());
8082
}
8183

84+
@SuppressWarnings("resource")
8285
@Test
8386
public void testAppendChar() throws Exception {
8487
out.append('F');

0 commit comments

Comments
 (0)