Skip to content

Commit 20a49a5

Browse files
committed
Replace deprecated CLOSED_OUTPUT_STREAM with INSTANCE in org.apache.commons.io.output.ClosedOutputStream
1 parent 3abb6b2 commit 20a49a5

File tree

1 file changed

+2
-2
lines changed
  • log4j-transform-maven-shade-plugin-extensions/src/main/java/org/apache/logging/log4j/maven/plugins/shade/transformer

1 file changed

+2
-2
lines changed

log4j-transform-maven-shade-plugin-extensions/src/main/java/org/apache/logging/log4j/maven/plugins/shade/transformer/CloseShieldOutputStream.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
package org.apache.logging.log4j.maven.plugins.shade.transformer;
1818

19-
import static org.apache.commons.io.output.ClosedOutputStream.CLOSED_OUTPUT_STREAM;
19+
import static org.apache.commons.io.output.ClosedOutputStream.INSTANCE;
2020

2121
import java.io.IOException;
2222
import java.io.OutputStream;
@@ -37,6 +37,6 @@ final class CloseShieldOutputStream extends ProxyOutputStream {
3737
@Override
3838
public void close() throws IOException {
3939
out.flush();
40-
out = CLOSED_OUTPUT_STREAM;
40+
out = INSTANCE;
4141
}
4242
}

0 commit comments

Comments
 (0)