Remove unused imports and fix warnings
This commit is contained in:
parent
fd1d11ec39
commit
35401caac4
@ -51,7 +51,7 @@ public class ChannelLocal<T> {
|
|||||||
* Returns the initial value of the variable. By default, it returns
|
* Returns the initial value of the variable. By default, it returns
|
||||||
* {@code null}. Override it to change the initial value.
|
* {@code null}. Override it to change the initial value.
|
||||||
*/
|
*/
|
||||||
protected T initialValue(@SuppressWarnings("unused") Channel channel) {
|
protected T initialValue(Channel channel) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,7 +29,6 @@ import org.jboss.netty.channel.AbstractChannel;
|
|||||||
import org.jboss.netty.channel.Channel;
|
import org.jboss.netty.channel.Channel;
|
||||||
import org.jboss.netty.channel.ChannelFactory;
|
import org.jboss.netty.channel.ChannelFactory;
|
||||||
import org.jboss.netty.channel.ChannelFuture;
|
import org.jboss.netty.channel.ChannelFuture;
|
||||||
import org.jboss.netty.channel.ChannelFutureListener;
|
|
||||||
import org.jboss.netty.channel.ChannelPipeline;
|
import org.jboss.netty.channel.ChannelPipeline;
|
||||||
import org.jboss.netty.channel.ChannelSink;
|
import org.jboss.netty.channel.ChannelSink;
|
||||||
import org.jboss.netty.channel.MessageEvent;
|
import org.jboss.netty.channel.MessageEvent;
|
||||||
|
@ -370,7 +370,7 @@ public class SslHandler extends FrameDecoder
|
|||||||
* @deprecated Use {@link #handshake()} instead.
|
* @deprecated Use {@link #handshake()} instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public ChannelFuture handshake(@SuppressWarnings("unused") Channel channel) {
|
public ChannelFuture handshake(Channel channel) {
|
||||||
return handshake();
|
return handshake();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -394,7 +394,7 @@ public class SslHandler extends FrameDecoder
|
|||||||
* @deprecated Use {@link #close()} instead.
|
* @deprecated Use {@link #close()} instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public ChannelFuture close(@SuppressWarnings("unused") Channel channel) {
|
public ChannelFuture close(Channel channel) {
|
||||||
return close();
|
return close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -135,7 +135,7 @@ public class WriteTimeoutHandler extends SimpleChannelDownstreamHandler
|
|||||||
timer.stop();
|
timer.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected long getTimeoutMillis(@SuppressWarnings("unused") MessageEvent e) {
|
protected long getTimeoutMillis(MessageEvent e) {
|
||||||
return timeoutMillis;
|
return timeoutMillis;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user