Removed unnecessary SuppressWarnings annotations

This commit is contained in:
Trustin Lee 2009-06-30 01:16:54 +00:00
parent e9d2c503f3
commit 959e72a6b0

View File

@ -449,8 +449,7 @@ public class Channels {
* @param interestOps the new interestOps * @param interestOps the new interestOps
*/ */
@Deprecated @Deprecated
public static void fireChannelInterestChanged( public static void fireChannelInterestChanged(Channel channel, int interestOps) {
Channel channel, @SuppressWarnings("unused") int interestOps) {
fireChannelInterestChanged(channel); fireChannelInterestChanged(channel);
} }
@ -474,13 +473,12 @@ public class Channels {
* {@link ChannelUpstreamHandler} in the {@link ChannelPipeline} where * {@link ChannelUpstreamHandler} in the {@link ChannelPipeline} where
* the specified {@link ChannelHandlerContext} belongs. * the specified {@link ChannelHandlerContext} belongs.
* *
* @param channel the {@link Channel}
* @param interestOps the new interestOps * @param interestOps the new interestOps
*/ */
@Deprecated @Deprecated
public static void fireChannelInterestChanged( public static void fireChannelInterestChanged(
ChannelHandlerContext ctx, ChannelHandlerContext ctx, Channel channel, int interestOps) {
@SuppressWarnings("unused") Channel channel,
@SuppressWarnings("unused") int interestOps) {
fireChannelInterestChanged(ctx); fireChannelInterestChanged(ctx);
} }
@ -691,8 +689,7 @@ public class Channels {
*/ */
@Deprecated @Deprecated
public static void bind( public static void bind(
ChannelHandlerContext ctx, ChannelHandlerContext ctx, Channel channel,
@SuppressWarnings("unused") Channel channel,
ChannelFuture future, SocketAddress localAddress) { ChannelFuture future, SocketAddress localAddress) {
bind(ctx, future, localAddress); bind(ctx, future, localAddress);
} }
@ -725,9 +722,7 @@ public class Channels {
*/ */
@Deprecated @Deprecated
public static void unbind( public static void unbind(
ChannelHandlerContext ctx, ChannelHandlerContext ctx, Channel channel, ChannelFuture future) {
@SuppressWarnings("unused") Channel channel,
ChannelFuture future) {
unbind(ctx, future); unbind(ctx, future);
} }
@ -803,8 +798,7 @@ public class Channels {
*/ */
@Deprecated @Deprecated
public static void connect( public static void connect(
ChannelHandlerContext ctx, ChannelHandlerContext ctx, Channel channel,
@SuppressWarnings("unused") Channel channel,
ChannelFuture future, SocketAddress remoteAddress) { ChannelFuture future, SocketAddress remoteAddress) {
connect(ctx, future, remoteAddress); connect(ctx, future, remoteAddress);
} }
@ -852,8 +846,7 @@ public class Channels {
*/ */
@Deprecated @Deprecated
public static void write( public static void write(
ChannelHandlerContext ctx, ChannelHandlerContext ctx, Channel channel,
@SuppressWarnings("unused") Channel channel,
ChannelFuture future, Object message) { ChannelFuture future, Object message) {
write(ctx, future, message, null); write(ctx, future, message, null);
} }
@ -914,8 +907,7 @@ public class Channels {
*/ */
@Deprecated @Deprecated
public static void write( public static void write(
ChannelHandlerContext ctx, ChannelHandlerContext ctx, Channel channel,
@SuppressWarnings("unused") Channel channel,
ChannelFuture future, Object message, SocketAddress remoteAddress) { ChannelFuture future, Object message, SocketAddress remoteAddress) {
write(ctx, future, message, remoteAddress); write(ctx, future, message, remoteAddress);
} }
@ -975,8 +967,7 @@ public class Channels {
*/ */
@Deprecated @Deprecated
public static void setInterestOps( public static void setInterestOps(
ChannelHandlerContext ctx, ChannelHandlerContext ctx, Channel channel,
@SuppressWarnings("unused") Channel channel,
ChannelFuture future, int interestOps) { ChannelFuture future, int interestOps) {
setInterestOps(ctx, future, interestOps); setInterestOps(ctx, future, interestOps);
} }
@ -1024,8 +1015,7 @@ public class Channels {
*/ */
@Deprecated @Deprecated
public static void disconnect( public static void disconnect(
ChannelHandlerContext ctx, ChannelHandlerContext ctx, Channel channel, ChannelFuture future) {
@SuppressWarnings("unused") Channel channel, ChannelFuture future) {
disconnect(ctx, future); disconnect(ctx, future);
} }
@ -1072,8 +1062,7 @@ public class Channels {
*/ */
@Deprecated @Deprecated
public static void close( public static void close(
ChannelHandlerContext ctx, ChannelHandlerContext ctx, Channel channel, ChannelFuture future) {
@SuppressWarnings("unused") Channel channel, ChannelFuture future) {
close(ctx, future); close(ctx, future);
} }