We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d251f4b commit 513e45eCopy full SHA for 513e45e
1 file changed
src/main/java/org/apache/commons/io/output/ProxyOutputStream.java
@@ -68,14 +68,19 @@ public Builder() {
68
* @see #getOutputStream()
69
* @see #getUnchecked()
70
*/
71
- @SuppressWarnings("resource") // caller closes
72
@Override
73
public ProxyOutputStream get() throws IOException {
74
- return new ProxyOutputStream(getOutputStream());
+ return new ProxyOutputStream(this);
75
}
76
77
78
+ @SuppressWarnings("resource") // caller closes
79
+ ProxyOutputStream(final Builder builder) throws IOException {
80
+ // the delegate is stored in a protected superclass variable named 'out'
81
+ super(builder.getOutputStream());
82
+ }
83
+
84
/**
85
* Constructs a new ProxyOutputStream.
86
*
0 commit comments