Skip to content

Commit c636df0

Browse files
committed
Overriding synch. method
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1441254 13f79535-47bb-0310-9956-ffa450edef68
1 parent cc0d688 commit c636df0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public long skip(final long n) throws IOException {
9191
* @throws IOException always thrown
9292
*/
9393
@Override
94-
public void reset() throws IOException {
94+
public synchronized void reset() throws IOException {
9595
throw exception;
9696
}
9797

src/test/java/org/apache/commons/io/IOUtilsTestCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public void testCloseQuietly_Socket() {
186186
public void testCloseQuietly_SocketIOException() {
187187
IOUtils.closeQuietly(new Socket() {
188188
@Override
189-
public void close() throws IOException {
189+
public synchronized void close() throws IOException {
190190
throw new IOException();
191191
}
192192
});

0 commit comments

Comments
 (0)