[#1500] Remove @deprecated methods

This commit is contained in:
Norman Maurer 2013-07-01 08:53:02 +02:00
parent 617ab6321b
commit 5d88c423df
8 changed files with 0 additions and 121 deletions

View File

@ -116,12 +116,6 @@ public abstract class AbstractByteBuf implements ByteBuf {
return writerIndex > readerIndex; return writerIndex > readerIndex;
} }
@Override
@Deprecated
public final boolean readable() {
return isReadable();
}
@Override @Override
public boolean isReadable(int numBytes) { public boolean isReadable(int numBytes) {
return writerIndex - readerIndex >= numBytes; return writerIndex - readerIndex >= numBytes;
@ -132,12 +126,6 @@ public abstract class AbstractByteBuf implements ByteBuf {
return capacity() > writerIndex; return capacity() > writerIndex;
} }
@Override
@Deprecated
public final boolean writable() {
return isWritable();
}
@Override @Override
public boolean isWritable(int numBytes) { public boolean isWritable(int numBytes) {
return capacity() - writerIndex >= numBytes; return capacity() - writerIndex >= numBytes;
@ -264,12 +252,6 @@ public abstract class AbstractByteBuf implements ByteBuf {
return this; return this;
} }
@Override
@Deprecated
public final ByteBuf ensureWritableBytes(int minWritableBytes) {
return ensureWritable(minWritableBytes);
}
@Override @Override
public int ensureWritable(int minWritableBytes, boolean force) { public int ensureWritable(int minWritableBytes, boolean force) {
if (minWritableBytes < 0) { if (minWritableBytes < 0) {

View File

@ -396,12 +396,6 @@ public interface ByteBuf extends ReferenceCounted, Comparable<ByteBuf> {
*/ */
boolean isReadable(int size); boolean isReadable(int size);
/**
* @deprecated Use {@link #isReadable()} or {@link #isReadable(int)} instead.
*/
@Deprecated
boolean readable();
/** /**
* Returns {@code true} * Returns {@code true}
* if and only if {@code (this.capacity - this.writerIndex)} is greater * if and only if {@code (this.capacity - this.writerIndex)} is greater
@ -415,12 +409,6 @@ public interface ByteBuf extends ReferenceCounted, Comparable<ByteBuf> {
*/ */
boolean isWritable(int size); boolean isWritable(int size);
/**
* @deprecated Use {@link #isWritable()} or {@link #isWritable(int)} instead.
*/
@Deprecated
boolean writable();
/** /**
* Sets the {@code readerIndex} and {@code writerIndex} of this buffer to * Sets the {@code readerIndex} and {@code writerIndex} of this buffer to
* {@code 0}. * {@code 0}.
@ -499,12 +487,6 @@ public interface ByteBuf extends ReferenceCounted, Comparable<ByteBuf> {
*/ */
ByteBuf ensureWritable(int minWritableBytes); ByteBuf ensureWritable(int minWritableBytes);
/**
* @deprecated Use {@link #ensureWritable(int)} instead.
*/
@Deprecated
ByteBuf ensureWritableBytes(int minWritableBytes);
/** /**
* Tries to make sure the number of {@linkplain #writableBytes() the writable bytes} * Tries to make sure the number of {@linkplain #writableBytes() the writable bytes}
* is equal to or greater than the specified value. Unlike {@link #ensureWritable(int)}, * is equal to or greater than the specified value. Unlike {@link #ensureWritable(int)},

View File

@ -167,23 +167,11 @@ public final class EmptyByteBuf implements ByteBuf {
return false; return false;
} }
@Override
@Deprecated
public boolean readable() {
return false;
}
@Override @Override
public boolean isWritable() { public boolean isWritable() {
return false; return false;
} }
@Override
@Deprecated
public boolean writable() {
return false;
}
@Override @Override
public ByteBuf clear() { public ByteBuf clear() {
return this; return this;
@ -230,12 +218,6 @@ public final class EmptyByteBuf implements ByteBuf {
return this; return this;
} }
@Override
@Deprecated
public ByteBuf ensureWritableBytes(int minWritableBytes) {
return ensureWritable(minWritableBytes);
}
@Override @Override
public int ensureWritable(int minWritableBytes, boolean force) { public int ensureWritable(int minWritableBytes, boolean force) {
if (minWritableBytes < 0) { if (minWritableBytes < 0) {

View File

@ -136,12 +136,6 @@ public final class SwappedByteBuf implements ByteBuf {
return buf.isReadable(); return buf.isReadable();
} }
@Override
@Deprecated
public boolean readable() {
return buf.isReadable();
}
@Override @Override
public boolean isReadable(int size) { public boolean isReadable(int size) {
return buf.isReadable(size); return buf.isReadable(size);
@ -152,12 +146,6 @@ public final class SwappedByteBuf implements ByteBuf {
return buf.isWritable(); return buf.isWritable();
} }
@Override
@Deprecated
public boolean writable() {
return buf.isWritable();
}
@Override @Override
public boolean isWritable(int size) { public boolean isWritable(int size) {
return buf.isWritable(size); return buf.isWritable(size);
@ -211,13 +199,6 @@ public final class SwappedByteBuf implements ByteBuf {
return this; return this;
} }
@Override
@Deprecated
public ByteBuf ensureWritableBytes(int minWritableBytes) {
buf.ensureWritable(minWritableBytes);
return this;
}
@Override @Override
public int ensureWritable(int minWritableBytes, boolean force) { public int ensureWritable(int minWritableBytes, boolean force) {
return buf.ensureWritable(minWritableBytes, force); return buf.ensureWritable(minWritableBytes, force);

View File

@ -152,23 +152,11 @@ final class UnreleasableByteBuf implements ByteBuf {
return buf.isReadable(); return buf.isReadable();
} }
@Override
@Deprecated
public boolean readable() {
return buf.readable();
}
@Override @Override
public boolean isWritable() { public boolean isWritable() {
return buf.isWritable(); return buf.isWritable();
} }
@Override
@Deprecated
public boolean writable() {
return buf.writable();
}
@Override @Override
public ByteBuf clear() { public ByteBuf clear() {
buf.clear(); buf.clear();
@ -217,13 +205,6 @@ final class UnreleasableByteBuf implements ByteBuf {
return this; return this;
} }
@Override
@Deprecated
public ByteBuf ensureWritableBytes(int minWritableBytes) {
buf.ensureWritableBytes(minWritableBytes);
return this;
}
@Override @Override
public int ensureWritable(int minWritableBytes, boolean force) { public int ensureWritable(int minWritableBytes, boolean force) {
return buf.ensureWritable(minWritableBytes, force); return buf.ensureWritable(minWritableBytes, force);

View File

@ -262,11 +262,6 @@ public abstract class WebSocketServerHandshaker {
return selectedSubprotocol; return selectedSubprotocol;
} }
@Deprecated
protected void setSelectedSubprotocol(String value) {
selectedSubprotocol = value;
}
/** /**
* Returns the decoder to use after handshake is complete. * Returns the decoder to use after handshake is complete.
*/ */

View File

@ -188,20 +188,6 @@ abstract class AbstractBootstrap<B extends AbstractBootstrap<B, C>, C extends Ch
return b; return b;
} }
/**
* @deprecated Use {@link EventLoopGroup#shutdown()} instead.
*
* Shutdown the {@link AbstractBootstrap} and the {@link EventLoopGroup} which is
* used by it. Only call this if you don't share the {@link EventLoopGroup}
* between different {@link AbstractBootstrap}'s.
*/
@Deprecated
public void shutdown() {
if (group != null) {
group.shutdown();
}
}
/** /**
* Validate all the parameters. Sub-classes may override this, but should * Validate all the parameters. Sub-classes may override this, but should
* call the super method in that case. * call the super method in that case.

View File

@ -184,16 +184,6 @@ public final class ServerBootstrap extends AbstractBootstrap<ServerBootstrap, Se
}); });
} }
@Override
@Deprecated
@SuppressWarnings("deprecation")
public void shutdown() {
super.shutdown();
if (childGroup != null) {
childGroup.shutdown();
}
}
@Override @Override
public ServerBootstrap validate() { public ServerBootstrap validate() {
super.validate(); super.validate();