Skip to content

Commit 9d90c9b

Browse files
committed
Internal refactoring
1 parent ac96083 commit 9d90c9b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/main/java/org/apache/commons/io/input/UnsynchronizedFilterInputStream.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public Builder() {
9898
*/
9999
@Override
100100
public UnsynchronizedFilterInputStream get() throws IOException {
101-
return new UnsynchronizedFilterInputStream(getInputStream());
101+
return new UnsynchronizedFilterInputStream(this);
102102
}
103103

104104
}
@@ -117,6 +117,10 @@ public static Builder builder() {
117117
*/
118118
protected volatile InputStream inputStream;
119119

120+
UnsynchronizedFilterInputStream(final Builder builder) throws IOException {
121+
this.inputStream = builder.getInputStream();
122+
}
123+
120124
/**
121125
* Constructs a new {@code FilterInputStream} with the specified input stream as source.
122126
*

0 commit comments

Comments
 (0)