mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
Allow duplex connections' dispose() methods to throw IOExceptions.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user