Allow duplex connections' dispose() methods to throw IOExceptions.

This commit is contained in:
akwizgran
2012-10-19 21:52:53 +01:00
parent 21f177d695
commit cc6e9d53ad
9 changed files with 47 additions and 51 deletions

View File

@@ -28,5 +28,5 @@ public interface DuplexTransportConnection {
* of an exception and the second argument indicates whether the connection
* was recognised, which may affect how resources are disposed of.
*/
void dispose(boolean exception, boolean recognised);
void dispose(boolean exception, boolean recognised) throws IOException;
}

View File

@@ -18,7 +18,6 @@ public interface SimplexTransportReader {
* argument indicates whether the reader is being closed because of an
* exception and the second argument indicates whether the connection was
* recognised, which may affect how resources are disposed of.
* @throws IOException
*/
void dispose(boolean exception, boolean recognised) throws IOException;
}

View File

@@ -25,7 +25,6 @@ public interface SimplexTransportWriter {
* Closes the writer and disposes of any associated resources. The
* argument indicates whether the writer is being closed because of an
* exception, which may affect how resources are disposed of.
* @throws IOException
*/
void dispose(boolean exception) throws IOException;
}