Skip to content

Commit c60a04a

Browse files
committed
Simpler lambdas.
1 parent a2c7165 commit c60a04a

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public int available() throws IOException {
144144
*/
145145
@Override
146146
public void close() throws IOException {
147-
IOUtils.close(in, e -> handleIOException(e));
147+
IOUtils.close(in, this::handleIOException);
148148
}
149149

150150
/**

src/main/java/org/apache/commons/io/output/ProxyOutputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public void flush() throws IOException {
114114
*/
115115
@Override
116116
public void close() throws IOException {
117-
IOUtils.close(out, e -> handleIOException(e));
117+
IOUtils.close(out, this::handleIOException);
118118
}
119119

120120
/**

src/main/java/org/apache/commons/io/output/ProxyWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public void flush() throws IOException {
205205
*/
206206
@Override
207207
public void close() throws IOException {
208-
IOUtils.close(out, e -> handleIOException(e));
208+
IOUtils.close(out, this::handleIOException);
209209
}
210210

211211
/**

0 commit comments

Comments
 (0)