commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1441254 - in /commons/proper/io/trunk/src: main/java/org/apache/commons/io/input/BrokenInputStream.java test/java/org/apache/commons/io/IOUtilsTestCase.java
Date Thu, 31 Jan 2013 23:14:25 GMT
Author: sebb
Date: Thu Jan 31 23:14:25 2013
New Revision: 1441254

URL: http://svn.apache.org/viewvc?rev=1441254&view=rev
Log:
Overriding synch. method

Modified:
    commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/BrokenInputStream.java
    commons/proper/io/trunk/src/test/java/org/apache/commons/io/IOUtilsTestCase.java

Modified: commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/BrokenInputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/BrokenInputStream.java?rev=1441254&r1=1441253&r2=1441254&view=diff
==============================================================================
--- commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/BrokenInputStream.java
(original)
+++ commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/BrokenInputStream.java
Thu Jan 31 23:14:25 2013
@@ -91,7 +91,7 @@ public class BrokenInputStream extends I
      * @throws IOException always thrown
      */
     @Override
-    public void reset() throws IOException {
+    public synchronized void reset() throws IOException {
         throw exception;
     }
 

Modified: commons/proper/io/trunk/src/test/java/org/apache/commons/io/IOUtilsTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/test/java/org/apache/commons/io/IOUtilsTestCase.java?rev=1441254&r1=1441253&r2=1441254&view=diff
==============================================================================
--- commons/proper/io/trunk/src/test/java/org/apache/commons/io/IOUtilsTestCase.java (original)
+++ commons/proper/io/trunk/src/test/java/org/apache/commons/io/IOUtilsTestCase.java Thu Jan
31 23:14:25 2013
@@ -186,7 +186,7 @@ public class IOUtilsTestCase extends Fil
     public void testCloseQuietly_SocketIOException() {
         IOUtils.closeQuietly(new Socket() {            
             @Override
-            public void close() throws IOException {
+            public synchronized void close() throws IOException {
                 throw new IOException();
             }
         });



Mime
View raw message