diff options
author | Matthew Newhook <matthew@zeroc.com> | 2014-08-07 14:05:44 -0230 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2014-08-07 14:05:44 -0230 |
commit | e3a672a438635a1173388aea9d7a2d44de358945 (patch) | |
tree | 57113ece1dd013c9687468a8dd7cc62c80136b86 /java/src/IceInternal/TcpTransceiver.java | |
parent | ICE-5457 added ability to set source address for connections (diff) | |
download | ice-e3a672a438635a1173388aea9d7a2d44de358945.tar.bz2 ice-e3a672a438635a1173388aea9d7a2d44de358945.tar.xz ice-e3a672a438635a1173388aea9d7a2d44de358945.zip |
Add @Override where possible, and remove trailing white space.
Diffstat (limited to 'java/src/IceInternal/TcpTransceiver.java')
-rw-r--r-- | java/src/IceInternal/TcpTransceiver.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/java/src/IceInternal/TcpTransceiver.java b/java/src/IceInternal/TcpTransceiver.java index fd8bcc9ba54..bdaa5bca9a1 100644 --- a/java/src/IceInternal/TcpTransceiver.java +++ b/java/src/IceInternal/TcpTransceiver.java @@ -11,12 +11,14 @@ package IceInternal; final class TcpTransceiver implements Transceiver { + @Override public java.nio.channels.SelectableChannel fd() { assert(_fd != null); return _fd; } + @Override public int initialize(Buffer readBuffer, Buffer writeBuffer, Ice.BooleanHolder moreData) { try @@ -119,6 +121,7 @@ final class TcpTransceiver implements Transceiver return SocketOperation.None; } + @Override public int closing(boolean initiator, Ice.LocalException ex) { // If we are initiating the connection closure, wait for the peer @@ -126,6 +129,7 @@ final class TcpTransceiver implements Transceiver return initiator ? SocketOperation.Read : SocketOperation.None; } + @Override public void close() { if(_state == StateConnected && _instance.traceLevel() >= 1) @@ -149,6 +153,7 @@ final class TcpTransceiver implements Transceiver } } + @Override @SuppressWarnings("deprecation") public int write(Buffer buf) { @@ -234,6 +239,7 @@ final class TcpTransceiver implements Transceiver return SocketOperation.None; } + @Override @SuppressWarnings("deprecation") public int read(Buffer buf, Ice.BooleanHolder moreData) { @@ -285,16 +291,19 @@ final class TcpTransceiver implements Transceiver return SocketOperation.None; } + @Override public String protocol() { return _instance.protocol(); } + @Override public String toString() { return _desc; } + @Override public Ice.ConnectionInfo getInfo() { Ice.TCPConnectionInfo info = new Ice.TCPConnectionInfo(); @@ -312,6 +321,7 @@ final class TcpTransceiver implements Transceiver return info; } + @Override public void checkSendSize(Buffer buf, int messageSizeMax) { if(buf.size() > messageSizeMax) @@ -371,6 +381,7 @@ final class TcpTransceiver implements Transceiver } } + @Override protected synchronized void finalize() throws Throwable |