Fix compiler warnings, remove exceptions not thrown from method
signatures.
MODIFY
src/test/java/org/apache/commons/io/output/FileWriterWithEncodingTest.java
src/test/java/org/apache/commons/io/output/FileWriterWithEncodingTest.java
@@ -192,7 +192,7 @@ public void constructor_File_directory() {
//-----------------------------------------------------------------------
@Test
- public void constructor_File_nullFile() throws IOException {
+ public void constructor_File_nullFile() {
assertThrows(NullPointerException.class, () -> {
try (
Writer writer = new FileWriterWithEncoding((File) null, defaultEncoding);
@@ -203,7 +203,7 @@ public void constructor_File_nullFile() throws IOException {
//-----------------------------------------------------------------------
@Test
- public void constructor_fileName_nullFile() throws IOException {
+ public void constructor_fileName_nullFile() {
assertThrows(NullPointerException.class, () -> {
try (
Writer writer = new FileWriterWithEncoding((String) null, defaultEncoding);

Fix compiler warnings, remove exceptions not thrown from method
signatures.