Util: Don't throw unsupported on setSoLinger()

This commit is contained in:
zzz
2018-01-21 14:29:48 +00:00
parent d8c3f617aa
commit 6176aaeb44

View File

@@ -296,12 +296,13 @@ public class InternalSocket extends Socket {
public void setSendBufferSize(int size) {
throw new UnsupportedOperationException();
}
/** @deprecated unsupported */
@Deprecated
/**
* Does nothing as of 0.9.33, prior to that threw UnsupportedOperationException
*/
@Override
public void setSoLinger(boolean on, int linger) {
throw new UnsupportedOperationException();
}
public void setSoLinger(boolean on, int linger) {}
/** @deprecated unsupported */
@Deprecated
@Override