Remove various unnecesary qualifiers
This commit is contained in:
parent
44159abefa
commit
bc7eb20c6e
|
@ -55,7 +55,6 @@ public class Bootstrap implements ExternalResourceReleasable {
|
||||||
* I/O operation is requested.
|
* I/O operation is requested.
|
||||||
*/
|
*/
|
||||||
protected Bootstrap() {
|
protected Bootstrap() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -113,7 +113,6 @@ public class ClientBootstrap extends Bootstrap {
|
||||||
* operation is requested.
|
* operation is requested.
|
||||||
*/
|
*/
|
||||||
public ClientBootstrap() {
|
public ClientBootstrap() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -122,7 +122,6 @@ public class ConnectionlessBootstrap extends Bootstrap {
|
||||||
* operation is requested.
|
* operation is requested.
|
||||||
*/
|
*/
|
||||||
public ConnectionlessBootstrap() {
|
public ConnectionlessBootstrap() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -165,7 +165,6 @@ public class ServerBootstrap extends Bootstrap {
|
||||||
* operation is requested.
|
* operation is requested.
|
||||||
*/
|
*/
|
||||||
public ServerBootstrap() {
|
public ServerBootstrap() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -717,11 +717,11 @@ public class CompositeChannelBuffer extends AbstractChannelBuffer {
|
||||||
// New readerIndex and writerIndex will become 0 and
|
// New readerIndex and writerIndex will become 0 and
|
||||||
// (previous writerIndex - previous readerIndex) respectively.
|
// (previous writerIndex - previous readerIndex) respectively.
|
||||||
|
|
||||||
final int localReaderIndex = this.readerIndex();
|
final int localReaderIndex = readerIndex();
|
||||||
if (localReaderIndex == 0) {
|
if (localReaderIndex == 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int localWriterIndex = this.writerIndex();
|
int localWriterIndex = writerIndex();
|
||||||
|
|
||||||
final int bytesToMove = capacity() - localReaderIndex;
|
final int bytesToMove = capacity() - localReaderIndex;
|
||||||
List<ChannelBuffer> list = decompose(localReaderIndex, bytesToMove);
|
List<ChannelBuffer> list = decompose(localReaderIndex, bytesToMove);
|
||||||
|
@ -744,14 +744,14 @@ public class CompositeChannelBuffer extends AbstractChannelBuffer {
|
||||||
int localMarkedReaderIndex = localReaderIndex;
|
int localMarkedReaderIndex = localReaderIndex;
|
||||||
try {
|
try {
|
||||||
resetReaderIndex();
|
resetReaderIndex();
|
||||||
localMarkedReaderIndex = this.readerIndex();
|
localMarkedReaderIndex = readerIndex();
|
||||||
} catch (IndexOutOfBoundsException e) {
|
} catch (IndexOutOfBoundsException e) {
|
||||||
// ignore
|
// ignore
|
||||||
}
|
}
|
||||||
int localMarkedWriterIndex = localWriterIndex;
|
int localMarkedWriterIndex = localWriterIndex;
|
||||||
try {
|
try {
|
||||||
resetWriterIndex();
|
resetWriterIndex();
|
||||||
localMarkedWriterIndex = this.writerIndex();
|
localMarkedWriterIndex = writerIndex();
|
||||||
} catch (IndexOutOfBoundsException e) {
|
} catch (IndexOutOfBoundsException e) {
|
||||||
// ignore
|
// ignore
|
||||||
}
|
}
|
||||||
|
|
|
@ -99,7 +99,7 @@ public class DirectChannelBufferFactory extends AbstractChannelBufferFactory {
|
||||||
"preallocatedBufCapacity must be greater than 0: " + preallocatedBufferCapacity);
|
"preallocatedBufCapacity must be greater than 0: " + preallocatedBufferCapacity);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.preallocatedBufCapacity = preallocatedBufferCapacity;
|
preallocatedBufCapacity = preallocatedBufferCapacity;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ChannelBuffer getBuffer(ByteOrder order, int capacity) {
|
public ChannelBuffer getBuffer(ByteOrder order, int capacity) {
|
||||||
|
|
|
@ -53,7 +53,6 @@ public class HeapChannelBufferFactory extends AbstractChannelBufferFactory {
|
||||||
* {@link ByteOrder#BIG_ENDIAN}.
|
* {@link ByteOrder#BIG_ENDIAN}.
|
||||||
*/
|
*/
|
||||||
public HeapChannelBufferFactory() {
|
public HeapChannelBufferFactory() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -146,7 +146,7 @@ public abstract class AbstractChannel implements Channel {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public final int hashCode() {
|
public final int hashCode() {
|
||||||
return this.id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -26,7 +26,6 @@ public abstract class AbstractChannelSink implements ChannelSink {
|
||||||
* Creates a new instance.
|
* Creates a new instance.
|
||||||
*/
|
*/
|
||||||
protected AbstractChannelSink() {
|
protected AbstractChannelSink() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -28,7 +28,6 @@ public class ChannelException extends RuntimeException {
|
||||||
* Creates a new exception.
|
* Creates a new exception.
|
||||||
*/
|
*/
|
||||||
public ChannelException() {
|
public ChannelException() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -15,6 +15,9 @@
|
||||||
*/
|
*/
|
||||||
package org.jboss.netty.channel;
|
package org.jboss.netty.channel;
|
||||||
|
|
||||||
|
import org.jboss.netty.bootstrap.Bootstrap;
|
||||||
|
import org.jboss.netty.channel.group.ChannelGroup;
|
||||||
|
|
||||||
import java.lang.annotation.Documented;
|
import java.lang.annotation.Documented;
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Inherited;
|
import java.lang.annotation.Inherited;
|
||||||
|
@ -22,9 +25,6 @@ import java.lang.annotation.Retention;
|
||||||
import java.lang.annotation.RetentionPolicy;
|
import java.lang.annotation.RetentionPolicy;
|
||||||
import java.lang.annotation.Target;
|
import java.lang.annotation.Target;
|
||||||
|
|
||||||
import org.jboss.netty.bootstrap.Bootstrap;
|
|
||||||
import org.jboss.netty.channel.group.ChannelGroup;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handles or intercepts a {@link ChannelEvent}, and sends a
|
* Handles or intercepts a {@link ChannelEvent}, and sends a
|
||||||
* {@link ChannelEvent} to the next handler in a {@link ChannelPipeline}.
|
* {@link ChannelEvent} to the next handler in a {@link ChannelPipeline}.
|
||||||
|
@ -224,7 +224,7 @@ public interface ChannelHandler {
|
||||||
@Documented
|
@Documented
|
||||||
@Target(ElementType.TYPE)
|
@Target(ElementType.TYPE)
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
public @interface Sharable {
|
@interface Sharable {
|
||||||
// no value
|
// no value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,6 @@ public class ChannelHandlerLifeCycleException extends RuntimeException {
|
||||||
* Creates a new exception.
|
* Creates a new exception.
|
||||||
*/
|
*/
|
||||||
public ChannelHandlerLifeCycleException() {
|
public ChannelHandlerLifeCycleException() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -30,7 +30,6 @@ public class ChannelPipelineException extends ChannelException {
|
||||||
* Creates a new instance.
|
* Creates a new instance.
|
||||||
*/
|
*/
|
||||||
public ChannelPipelineException() {
|
public ChannelPipelineException() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -230,7 +230,7 @@ public class DefaultChannelFuture implements ChannelFuture {
|
||||||
checkDeadLock();
|
checkDeadLock();
|
||||||
waiters++;
|
waiters++;
|
||||||
try {
|
try {
|
||||||
this.wait();
|
wait();
|
||||||
} finally {
|
} finally {
|
||||||
waiters--;
|
waiters--;
|
||||||
}
|
}
|
||||||
|
@ -255,7 +255,7 @@ public class DefaultChannelFuture implements ChannelFuture {
|
||||||
checkDeadLock();
|
checkDeadLock();
|
||||||
waiters++;
|
waiters++;
|
||||||
try {
|
try {
|
||||||
this.wait();
|
wait();
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
interrupted = true;
|
interrupted = true;
|
||||||
} finally {
|
} finally {
|
||||||
|
@ -309,7 +309,7 @@ public class DefaultChannelFuture implements ChannelFuture {
|
||||||
try {
|
try {
|
||||||
for (;;) {
|
for (;;) {
|
||||||
try {
|
try {
|
||||||
this.wait(waitTime / 1000000, (int) (waitTime % 1000000));
|
wait(waitTime / 1000000, (int) (waitTime % 1000000));
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
if (interruptable) {
|
if (interruptable) {
|
||||||
throw e;
|
throw e;
|
||||||
|
|
|
@ -790,7 +790,6 @@ public class DefaultChannelPipeline implements ChannelPipeline {
|
||||||
|
|
||||||
private static final class DiscardingChannelSink implements ChannelSink {
|
private static final class DiscardingChannelSink implements ChannelSink {
|
||||||
DiscardingChannelSink() {
|
DiscardingChannelSink() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void eventSunk(ChannelPipeline pipeline, ChannelEvent e) {
|
public void eventSunk(ChannelPipeline pipeline, ChannelEvent e) {
|
||||||
|
|
|
@ -207,7 +207,7 @@ public class DefaultChannelGroupFuture implements ChannelGroupFuture {
|
||||||
checkDeadLock();
|
checkDeadLock();
|
||||||
waiters++;
|
waiters++;
|
||||||
try {
|
try {
|
||||||
this.wait();
|
wait();
|
||||||
} finally {
|
} finally {
|
||||||
waiters--;
|
waiters--;
|
||||||
}
|
}
|
||||||
|
@ -232,7 +232,7 @@ public class DefaultChannelGroupFuture implements ChannelGroupFuture {
|
||||||
checkDeadLock();
|
checkDeadLock();
|
||||||
waiters++;
|
waiters++;
|
||||||
try {
|
try {
|
||||||
this.wait();
|
wait();
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
interrupted = true;
|
interrupted = true;
|
||||||
} finally {
|
} finally {
|
||||||
|
@ -286,7 +286,7 @@ public class DefaultChannelGroupFuture implements ChannelGroupFuture {
|
||||||
try {
|
try {
|
||||||
for (;;) {
|
for (;;) {
|
||||||
try {
|
try {
|
||||||
this.wait(waitTime / 1000000, (int) (waitTime % 1000000));
|
wait(waitTime / 1000000, (int) (waitTime % 1000000));
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
if (interruptable) {
|
if (interruptable) {
|
||||||
throw e;
|
throw e;
|
||||||
|
|
|
@ -15,7 +15,15 @@
|
||||||
*/
|
*/
|
||||||
package org.jboss.netty.channel.socket.nio;
|
package org.jboss.netty.channel.socket.nio;
|
||||||
|
|
||||||
import static org.jboss.netty.channel.Channels.*;
|
import org.jboss.netty.buffer.ChannelBuffer;
|
||||||
|
import org.jboss.netty.channel.AbstractChannel;
|
||||||
|
import org.jboss.netty.channel.Channel;
|
||||||
|
import org.jboss.netty.channel.ChannelFactory;
|
||||||
|
import org.jboss.netty.channel.ChannelPipeline;
|
||||||
|
import org.jboss.netty.channel.ChannelSink;
|
||||||
|
import org.jboss.netty.channel.MessageEvent;
|
||||||
|
import org.jboss.netty.channel.socket.nio.SocketSendBufferPool.SendBuffer;
|
||||||
|
import org.jboss.netty.util.internal.ThreadLocalBoolean;
|
||||||
|
|
||||||
import java.net.InetSocketAddress;
|
import java.net.InetSocketAddress;
|
||||||
import java.nio.channels.SelectableChannel;
|
import java.nio.channels.SelectableChannel;
|
||||||
|
@ -27,15 +35,7 @@ import java.util.concurrent.ConcurrentLinkedQueue;
|
||||||
import java.util.concurrent.atomic.AtomicBoolean;
|
import java.util.concurrent.atomic.AtomicBoolean;
|
||||||
import java.util.concurrent.atomic.AtomicInteger;
|
import java.util.concurrent.atomic.AtomicInteger;
|
||||||
|
|
||||||
import org.jboss.netty.buffer.ChannelBuffer;
|
import static org.jboss.netty.channel.Channels.*;
|
||||||
import org.jboss.netty.channel.AbstractChannel;
|
|
||||||
import org.jboss.netty.channel.Channel;
|
|
||||||
import org.jboss.netty.channel.ChannelFactory;
|
|
||||||
import org.jboss.netty.channel.ChannelPipeline;
|
|
||||||
import org.jboss.netty.channel.ChannelSink;
|
|
||||||
import org.jboss.netty.channel.MessageEvent;
|
|
||||||
import org.jboss.netty.channel.socket.nio.SocketSendBufferPool.SendBuffer;
|
|
||||||
import org.jboss.netty.util.internal.ThreadLocalBoolean;
|
|
||||||
|
|
||||||
abstract class AbstractNioChannel<C extends SelectableChannel & WritableByteChannel> extends AbstractChannel {
|
abstract class AbstractNioChannel<C extends SelectableChannel & WritableByteChannel> extends AbstractChannel {
|
||||||
|
|
||||||
|
@ -103,7 +103,7 @@ abstract class AbstractNioChannel<C extends SelectableChannel & WritableByteChan
|
||||||
ChannelSink sink, AbstractNioWorker worker, C ch) {
|
ChannelSink sink, AbstractNioWorker worker, C ch) {
|
||||||
super(id, parent, factory, pipeline, sink);
|
super(id, parent, factory, pipeline, sink);
|
||||||
this.worker = worker;
|
this.worker = worker;
|
||||||
this.channel = ch;
|
channel = ch;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected AbstractNioChannel(
|
protected AbstractNioChannel(
|
||||||
|
@ -111,7 +111,7 @@ abstract class AbstractNioChannel<C extends SelectableChannel & WritableByteChan
|
||||||
ChannelPipeline pipeline, ChannelSink sink, AbstractNioWorker worker, C ch) {
|
ChannelPipeline pipeline, ChannelSink sink, AbstractNioWorker worker, C ch) {
|
||||||
super(parent, factory, pipeline, sink);
|
super(parent, factory, pipeline, sink);
|
||||||
this.worker = worker;
|
this.worker = worker;
|
||||||
this.channel = ch;
|
channel = ch;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -164,7 +164,7 @@ abstract class AbstractNioChannel<C extends SelectableChannel & WritableByteChan
|
||||||
}
|
}
|
||||||
|
|
||||||
void setRawInterestOpsNow(int interestOps) {
|
void setRawInterestOpsNow(int interestOps) {
|
||||||
super.setInterestOpsNow(interestOps);
|
setInterestOpsNow(interestOps);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -214,7 +214,7 @@ abstract class AbstractNioChannel<C extends SelectableChannel & WritableByteChan
|
||||||
private final Queue<MessageEvent> queue;
|
private final Queue<MessageEvent> queue;
|
||||||
|
|
||||||
public WriteRequestQueue() {
|
public WriteRequestQueue() {
|
||||||
this.queue = new ConcurrentLinkedQueue<MessageEvent>();
|
queue = new ConcurrentLinkedQueue<MessageEvent>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public MessageEvent remove() {
|
public MessageEvent remove() {
|
||||||
|
|
|
@ -26,7 +26,6 @@ public class PrematureChannelClosureException extends Exception {
|
||||||
private static final long serialVersionUID = 233460005724966593L;
|
private static final long serialVersionUID = 233460005724966593L;
|
||||||
|
|
||||||
public PrematureChannelClosureException() {
|
public PrematureChannelClosureException() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public PrematureChannelClosureException(String msg) {
|
public PrematureChannelClosureException(String msg) {
|
||||||
|
|
|
@ -199,7 +199,7 @@ public enum Base64Dialect {
|
||||||
final byte[] decodabet;
|
final byte[] decodabet;
|
||||||
final boolean breakLinesByDefault;
|
final boolean breakLinesByDefault;
|
||||||
|
|
||||||
private Base64Dialect(byte[] alphabet, byte[] decodabet, boolean breakLinesByDefault) {
|
Base64Dialect(byte[] alphabet, byte[] decodabet, boolean breakLinesByDefault) {
|
||||||
this.alphabet = alphabet;
|
this.alphabet = alphabet;
|
||||||
this.decodabet = decodabet;
|
this.decodabet = decodabet;
|
||||||
this.breakLinesByDefault = breakLinesByDefault;
|
this.breakLinesByDefault = breakLinesByDefault;
|
||||||
|
|
|
@ -29,7 +29,6 @@ public class CompressionException extends RuntimeException {
|
||||||
* Creates a new instance.
|
* Creates a new instance.
|
||||||
*/
|
*/
|
||||||
public CompressionException() {
|
public CompressionException() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -54,6 +54,5 @@ final class ZlibUtil {
|
||||||
}
|
}
|
||||||
|
|
||||||
private ZlibUtil() {
|
private ZlibUtil() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -183,7 +183,6 @@ abstract class AbstractCodecEmbedder<E> implements CodecEmbedder<E> {
|
||||||
|
|
||||||
private final class EmbeddedChannelSink implements ChannelSink, ChannelUpstreamHandler {
|
private final class EmbeddedChannelSink implements ChannelSink, ChannelUpstreamHandler {
|
||||||
EmbeddedChannelSink() {
|
EmbeddedChannelSink() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) {
|
public void handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) {
|
||||||
|
@ -229,7 +228,6 @@ abstract class AbstractCodecEmbedder<E> implements CodecEmbedder<E> {
|
||||||
private static final class EmbeddedChannelPipeline extends DefaultChannelPipeline {
|
private static final class EmbeddedChannelPipeline extends DefaultChannelPipeline {
|
||||||
|
|
||||||
EmbeddedChannelPipeline() {
|
EmbeddedChannelPipeline() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -28,7 +28,6 @@ public class CodecEmbedderException extends RuntimeException {
|
||||||
* Creates a new instance.
|
* Creates a new instance.
|
||||||
*/
|
*/
|
||||||
public CodecEmbedderException() {
|
public CodecEmbedderException() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -68,6 +68,6 @@ public class DecoderEmbedder<E> extends AbstractCodecEmbedder<E> {
|
||||||
|
|
||||||
public boolean offer(Object input) {
|
public boolean offer(Object input) {
|
||||||
fireMessageReceived(getChannel(), input);
|
fireMessageReceived(getChannel(), input);
|
||||||
return !super.isEmpty();
|
return !isEmpty();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,6 @@ final class EmbeddedChannelFactory implements ChannelFactory {
|
||||||
static final ChannelFactory INSTANCE = new EmbeddedChannelFactory();
|
static final ChannelFactory INSTANCE = new EmbeddedChannelFactory();
|
||||||
|
|
||||||
private EmbeddedChannelFactory() {
|
private EmbeddedChannelFactory() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Channel newChannel(ChannelPipeline pipeline) {
|
public Channel newChannel(ChannelPipeline pipeline) {
|
||||||
|
|
|
@ -29,7 +29,6 @@ public class CorruptedFrameException extends Exception {
|
||||||
* Creates a new instance.
|
* Creates a new instance.
|
||||||
*/
|
*/
|
||||||
public CorruptedFrameException() {
|
public CorruptedFrameException() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -29,7 +29,6 @@ public class TooLongFrameException extends Exception {
|
||||||
* Creates a new instance.
|
* Creates a new instance.
|
||||||
*/
|
*/
|
||||||
public TooLongFrameException() {
|
public TooLongFrameException() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -47,7 +47,6 @@ public class CookieDecoder {
|
||||||
* Creates a new decoder.
|
* Creates a new decoder.
|
||||||
*/
|
*/
|
||||||
public CookieDecoder() {
|
public CookieDecoder() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -55,7 +54,6 @@ public class CookieDecoder {
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public CookieDecoder(@SuppressWarnings("unused") boolean lenient) {
|
public CookieDecoder(@SuppressWarnings("unused") boolean lenient) {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -199,7 +199,7 @@ public class HttpChunkAggregator extends SimpleChannelUpstreamHandler implements
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void appendToCumulation(ChannelBuffer input) {
|
protected void appendToCumulation(ChannelBuffer input) {
|
||||||
ChannelBuffer cumulation = this.currentMessage.getContent();
|
ChannelBuffer cumulation = currentMessage.getContent();
|
||||||
if (cumulation instanceof CompositeChannelBuffer) {
|
if (cumulation instanceof CompositeChannelBuffer) {
|
||||||
// Make sure the resulting cumulation buffer has no more than the configured components.
|
// Make sure the resulting cumulation buffer has no more than the configured components.
|
||||||
CompositeChannelBuffer composite = (CompositeChannelBuffer) cumulation;
|
CompositeChannelBuffer composite = (CompositeChannelBuffer) cumulation;
|
||||||
|
|
|
@ -100,7 +100,6 @@ public class HttpClientCodec implements ChannelUpstreamHandler,
|
||||||
private final class Encoder extends HttpRequestEncoder {
|
private final class Encoder extends HttpRequestEncoder {
|
||||||
|
|
||||||
Encoder() {
|
Encoder() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -130,6 +130,5 @@ final class HttpCodecUtil {
|
||||||
}
|
}
|
||||||
|
|
||||||
private HttpCodecUtil() {
|
private HttpCodecUtil() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,7 +53,6 @@ public abstract class HttpContentDecoder extends SimpleChannelUpstreamHandler
|
||||||
* Creates a new instance.
|
* Creates a new instance.
|
||||||
*/
|
*/
|
||||||
protected HttpContentDecoder() {
|
protected HttpContentDecoder() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -59,7 +59,6 @@ public abstract class HttpContentEncoder extends SimpleChannelHandler
|
||||||
* Creates a new instance.
|
* Creates a new instance.
|
||||||
*/
|
*/
|
||||||
protected HttpContentEncoder() {
|
protected HttpContentEncoder() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -334,7 +334,6 @@ public class HttpHeaders {
|
||||||
public static final String WWW_AUTHENTICATE = "WWW-Authenticate";
|
public static final String WWW_AUTHENTICATE = "WWW-Authenticate";
|
||||||
|
|
||||||
private Names() {
|
private Names() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -473,7 +472,6 @@ public class HttpHeaders {
|
||||||
public static final String WEBSOCKET = "WebSocket";
|
public static final String WEBSOCKET = "WebSocket";
|
||||||
|
|
||||||
private Values() {
|
private Values() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -114,7 +114,7 @@ public abstract class HttpMessageDecoder extends ReplayingDecoder<HttpMessageDec
|
||||||
* <em>Internal use only</em>.
|
* <em>Internal use only</em>.
|
||||||
* @apiviz.exclude
|
* @apiviz.exclude
|
||||||
*/
|
*/
|
||||||
protected static enum State {
|
protected enum State {
|
||||||
SKIP_CONTROL_CHARS,
|
SKIP_CONTROL_CHARS,
|
||||||
READ_INITIAL,
|
READ_INITIAL,
|
||||||
READ_HEADER,
|
READ_HEADER,
|
||||||
|
|
|
@ -56,7 +56,6 @@ public abstract class HttpMessageEncoder extends OneToOneEncoder {
|
||||||
* Creates a new instance.
|
* Creates a new instance.
|
||||||
*/
|
*/
|
||||||
protected HttpMessageEncoder() {
|
protected HttpMessageEncoder() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -60,7 +60,6 @@ public class HttpRequestDecoder extends HttpMessageDecoder {
|
||||||
* {@code maxChunkSize (8192)}.
|
* {@code maxChunkSize (8192)}.
|
||||||
*/
|
*/
|
||||||
public HttpRequestDecoder() {
|
public HttpRequestDecoder() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -89,7 +89,6 @@ public class HttpResponseDecoder extends HttpMessageDecoder {
|
||||||
* {@code maxChunkSize (8192)}.
|
* {@code maxChunkSize (8192)}.
|
||||||
*/
|
*/
|
||||||
public HttpResponseDecoder() {
|
public HttpResponseDecoder() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -52,7 +52,6 @@ public abstract class OneToOneDecoder implements ChannelUpstreamHandler {
|
||||||
* Creates a new instance with the current system character set.
|
* Creates a new instance with the current system character set.
|
||||||
*/
|
*/
|
||||||
protected OneToOneDecoder() {
|
protected OneToOneDecoder() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void handleUpstream(
|
public void handleUpstream(
|
||||||
|
|
|
@ -46,7 +46,6 @@ import org.jboss.netty.handler.codec.frame.Delimiters;
|
||||||
public abstract class OneToOneEncoder implements ChannelDownstreamHandler {
|
public abstract class OneToOneEncoder implements ChannelDownstreamHandler {
|
||||||
|
|
||||||
protected OneToOneEncoder() {
|
protected OneToOneEncoder() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void handleDownstream(
|
public void handleDownstream(
|
||||||
|
|
|
@ -310,7 +310,7 @@ public abstract class ReplayingDecoder<T extends Enum<T>>
|
||||||
|
|
||||||
protected ReplayingDecoder(T initialState, boolean unfold) {
|
protected ReplayingDecoder(T initialState, boolean unfold) {
|
||||||
super(unfold);
|
super(unfold);
|
||||||
this.state = initialState;
|
state = initialState;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -31,7 +31,6 @@ public class UnreplayableOperationException extends
|
||||||
* Creates a new instance.
|
* Creates a new instance.
|
||||||
*/
|
*/
|
||||||
public UnreplayableOperationException() {
|
public UnreplayableOperationException() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -207,7 +207,6 @@ public final class RtspHeaders {
|
||||||
public static final String WWW_AUTHENTICATE = HttpHeaders.Names.WWW_AUTHENTICATE;
|
public static final String WWW_AUTHENTICATE = HttpHeaders.Names.WWW_AUTHENTICATE;
|
||||||
|
|
||||||
private Names() {
|
private Names() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -385,11 +384,9 @@ public final class RtspHeaders {
|
||||||
public static final String URL = "url";
|
public static final String URL = "url";
|
||||||
|
|
||||||
protected Values() {
|
protected Values() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private RtspHeaders() {
|
private RtspHeaders() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,6 @@ public abstract class RtspMessageEncoder extends HttpMessageEncoder {
|
||||||
* Creates a new instance.
|
* Creates a new instance.
|
||||||
*/
|
*/
|
||||||
protected RtspMessageEncoder() {
|
protected RtspMessageEncoder() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -136,6 +136,5 @@ public final class RtspMethods {
|
||||||
}
|
}
|
||||||
|
|
||||||
private RtspMethods() {
|
private RtspMethods() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,7 +56,6 @@ public class RtspRequestDecoder extends RtspMessageDecoder {
|
||||||
* {@code maxContentLength (8192)}.
|
* {@code maxContentLength (8192)}.
|
||||||
*/
|
*/
|
||||||
public RtspRequestDecoder() {
|
public RtspRequestDecoder() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -57,7 +57,6 @@ public class RtspResponseDecoder extends RtspMessageDecoder {
|
||||||
* {@code maxContentLength (8192)}.
|
* {@code maxContentLength (8192)}.
|
||||||
*/
|
*/
|
||||||
public RtspResponseDecoder() {
|
public RtspResponseDecoder() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -290,6 +290,5 @@ public final class RtspResponseStatuses {
|
||||||
}
|
}
|
||||||
|
|
||||||
private RtspResponseStatuses() {
|
private RtspResponseStatuses() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,6 +48,5 @@ public final class RtspVersions {
|
||||||
}
|
}
|
||||||
|
|
||||||
private RtspVersions() {
|
private RtspVersions() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,7 +33,6 @@ public class DefaultSpdyHeadersFrame extends DefaultSpdyHeaderBlock
|
||||||
* @param streamId the Stream-ID of this frame
|
* @param streamId the Stream-ID of this frame
|
||||||
*/
|
*/
|
||||||
public DefaultSpdyHeadersFrame(int streamId) {
|
public DefaultSpdyHeadersFrame(int streamId) {
|
||||||
super();
|
|
||||||
setStreamId(streamId);
|
setStreamId(streamId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ public class SpdyFrameDecoder extends FrameDecoder {
|
||||||
private int numHeaders;
|
private int numHeaders;
|
||||||
private ChannelBuffer decompressed;
|
private ChannelBuffer decompressed;
|
||||||
|
|
||||||
private static enum State {
|
private enum State {
|
||||||
READ_COMMON_HEADER,
|
READ_COMMON_HEADER,
|
||||||
READ_CONTROL_FRAME,
|
READ_CONTROL_FRAME,
|
||||||
READ_SETTINGS_FRAME,
|
READ_SETTINGS_FRAME,
|
||||||
|
|
|
@ -63,7 +63,6 @@ public class SpdyHeaders {
|
||||||
public static final String VERSION = ":version";
|
public static final String VERSION = ":version";
|
||||||
|
|
||||||
private HttpNames() {
|
private HttpNames() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -94,7 +93,6 @@ public class SpdyHeaders {
|
||||||
public static final String VERSION = "version";
|
public static final String VERSION = "version";
|
||||||
|
|
||||||
private Spdy2HttpNames() {
|
private Spdy2HttpNames() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -68,7 +68,6 @@ public class SpdyHttpDecoder extends OneToOneDecoder {
|
||||||
* a {@link TooLongFrameException} will be raised.
|
* a {@link TooLongFrameException} will be raised.
|
||||||
*/
|
*/
|
||||||
public SpdyHttpDecoder(int version, int maxContentLength) {
|
public SpdyHttpDecoder(int version, int maxContentLength) {
|
||||||
super();
|
|
||||||
if (version < SPDY_MIN_VERSION || version > SPDY_MAX_VERSION) {
|
if (version < SPDY_MIN_VERSION || version > SPDY_MAX_VERSION) {
|
||||||
throw new IllegalArgumentException(
|
throw new IllegalArgumentException(
|
||||||
"unsupported version: " + version);
|
"unsupported version: " + version);
|
||||||
|
|
|
@ -52,7 +52,6 @@ public final class SpdyHttpHeaders {
|
||||||
public static final String SCHEME = "X-SPDY-Scheme";
|
public static final String SCHEME = "X-SPDY-Scheme";
|
||||||
|
|
||||||
private Names() {
|
private Names() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ import org.jboss.netty.handler.ssl.SslHandler;
|
||||||
*/
|
*/
|
||||||
public abstract class SpdyOrHttpChooser implements ChannelUpstreamHandler {
|
public abstract class SpdyOrHttpChooser implements ChannelUpstreamHandler {
|
||||||
|
|
||||||
public static enum SelectedProtocol {
|
public enum SelectedProtocol {
|
||||||
SpdyVersion2,
|
SpdyVersion2,
|
||||||
SpdyVersion3,
|
SpdyVersion3,
|
||||||
HttpVersion1_1,
|
HttpVersion1_1,
|
||||||
|
|
|
@ -28,7 +28,6 @@ public class SpdyProtocolException extends Exception {
|
||||||
* Creates a new instance.
|
* Creates a new instance.
|
||||||
*/
|
*/
|
||||||
public SpdyProtocolException() {
|
public SpdyProtocolException() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -256,7 +256,6 @@ final class SpdySession {
|
||||||
private final class PriorityComparator implements Comparator<Integer> {
|
private final class PriorityComparator implements Comparator<Integer> {
|
||||||
|
|
||||||
PriorityComparator() {
|
PriorityComparator() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public int compare(Integer id1, Integer id2) {
|
public int compare(Integer id1, Integer id2) {
|
||||||
|
|
|
@ -87,7 +87,6 @@ public class SpdySessionHandler extends SimpleChannelUpstreamHandler
|
||||||
* handle the client endpoint of the connection.
|
* handle the client endpoint of the connection.
|
||||||
*/
|
*/
|
||||||
public SpdySessionHandler(int version, boolean server) {
|
public SpdySessionHandler(int version, boolean server) {
|
||||||
super();
|
|
||||||
if (version < SPDY_MIN_VERSION || version > SPDY_MAX_VERSION) {
|
if (version < SPDY_MIN_VERSION || version > SPDY_MAX_VERSION) {
|
||||||
throw new IllegalArgumentException(
|
throw new IllegalArgumentException(
|
||||||
"unsupported version: " + version);
|
"unsupported version: " + version);
|
||||||
|
|
|
@ -78,10 +78,10 @@ public class IpFilterRuleList extends ArrayList<IpFilterRule> {
|
||||||
|
|
||||||
boolean allow = rule.startsWith("+");
|
boolean allow = rule.startsWith("+");
|
||||||
if (rule.charAt(1) == 'n' || rule.charAt(1) == 'i') {
|
if (rule.charAt(1) == 'n' || rule.charAt(1) == 'i') {
|
||||||
this.add(new PatternRule(allow, rule.substring(1)));
|
add(new PatternRule(allow, rule.substring(1)));
|
||||||
} else if (rule.charAt(1) == 'c') {
|
} else if (rule.charAt(1) == 'c') {
|
||||||
try {
|
try {
|
||||||
this.add(new IpSubnetFilterRule(allow, rule.substring(3)));
|
add(new IpSubnetFilterRule(allow, rule.substring(3)));
|
||||||
} catch (UnknownHostException e) {
|
} catch (UnknownHostException e) {
|
||||||
if (logger.isErrorEnabled()) {
|
if (logger.isErrorEnabled()) {
|
||||||
logger.error("error parsing ip filter " + rule, e);
|
logger.error("error parsing ip filter " + rule, e);
|
||||||
|
|
|
@ -15,12 +15,12 @@
|
||||||
*/
|
*/
|
||||||
package org.jboss.netty.handler.ipfilter;
|
package org.jboss.netty.handler.ipfilter;
|
||||||
|
|
||||||
import java.net.InetAddress;
|
|
||||||
import java.net.UnknownHostException;
|
|
||||||
|
|
||||||
import org.jboss.netty.logging.InternalLogger;
|
import org.jboss.netty.logging.InternalLogger;
|
||||||
import org.jboss.netty.logging.InternalLoggerFactory;
|
import org.jboss.netty.logging.InternalLoggerFactory;
|
||||||
|
|
||||||
|
import java.net.InetAddress;
|
||||||
|
import java.net.UnknownHostException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class allows to check if an IP V4 or V6 Address is contained in a subnet.<BR>
|
* This class allows to check if an IP V4 or V6 Address is contained in a subnet.<BR>
|
||||||
* <p/>
|
* <p/>
|
||||||
|
@ -101,7 +101,7 @@ public class IpSubnet implements IpSet, Comparable<IpSubnet> {
|
||||||
*/
|
*/
|
||||||
public boolean contains(String ipAddr) throws UnknownHostException {
|
public boolean contains(String ipAddr) throws UnknownHostException {
|
||||||
InetAddress inetAddress1 = InetAddress.getByName(ipAddr);
|
InetAddress inetAddress1 = InetAddress.getByName(ipAddr);
|
||||||
return this.contains(inetAddress1);
|
return contains(inetAddress1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -133,7 +133,7 @@ public class IpV4Subnet implements IpSet, Comparable<IpV4Subnet> {
|
||||||
*/
|
*/
|
||||||
private void setNetId(String netId) throws UnknownHostException {
|
private void setNetId(String netId) throws UnknownHostException {
|
||||||
InetAddress inetAddress1 = InetAddress.getByName(netId);
|
InetAddress inetAddress1 = InetAddress.getByName(netId);
|
||||||
this.setNetId(inetAddress1);
|
setNetId(inetAddress1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -199,7 +199,7 @@ public class IpV4Subnet implements IpSet, Comparable<IpV4Subnet> {
|
||||||
*/
|
*/
|
||||||
public boolean contains(String ipAddr) throws UnknownHostException {
|
public boolean contains(String ipAddr) throws UnknownHostException {
|
||||||
InetAddress inetAddress1 = InetAddress.getByName(ipAddr);
|
InetAddress inetAddress1 = InetAddress.getByName(ipAddr);
|
||||||
return this.contains(inetAddress1);
|
return contains(inetAddress1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -30,7 +30,6 @@ public class BlockingReadTimeoutException extends InterruptedIOException {
|
||||||
* Creates a new instance.
|
* Creates a new instance.
|
||||||
*/
|
*/
|
||||||
public BlockingReadTimeoutException() {
|
public BlockingReadTimeoutException() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -481,7 +481,7 @@ public class SslHandler extends FrameDecoder
|
||||||
if (ctx != null) {
|
if (ctx != null) {
|
||||||
throw new IllegalStateException("Can only get changed before attached to ChannelPipeline");
|
throw new IllegalStateException("Can only get changed before attached to ChannelPipeline");
|
||||||
}
|
}
|
||||||
this.closeOnSSLException = closeOnSslException;
|
closeOnSSLException = closeOnSslException;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean getCloseOnSSLException() {
|
public boolean getCloseOnSSLException() {
|
||||||
|
|
|
@ -498,7 +498,6 @@ public class IdleStateHandler extends SimpleChannelUpstreamHandler
|
||||||
volatile Timeout allIdleTimeout;
|
volatile Timeout allIdleTimeout;
|
||||||
|
|
||||||
State() {
|
State() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,6 @@ public class ReadTimeoutException extends TimeoutException {
|
||||||
* Creates a new instance.
|
* Creates a new instance.
|
||||||
*/
|
*/
|
||||||
public ReadTimeoutException() {
|
public ReadTimeoutException() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -289,7 +289,6 @@ public class ReadTimeoutHandler extends SimpleChannelUpstreamHandler
|
||||||
volatile long lastReadTime = System.currentTimeMillis();
|
volatile long lastReadTime = System.currentTimeMillis();
|
||||||
|
|
||||||
State() {
|
State() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,6 @@ public class TimeoutException extends ChannelException {
|
||||||
* Creates a new instance.
|
* Creates a new instance.
|
||||||
*/
|
*/
|
||||||
public TimeoutException() {
|
public TimeoutException() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -28,7 +28,6 @@ public class WriteTimeoutException extends TimeoutException {
|
||||||
* Creates a new instance.
|
* Creates a new instance.
|
||||||
*/
|
*/
|
||||||
public WriteTimeoutException() {
|
public WriteTimeoutException() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -273,8 +273,8 @@ public abstract class AbstractTrafficShapingHandler extends
|
||||||
*/
|
*/
|
||||||
public void configure(long newWriteLimit, long newReadLimit,
|
public void configure(long newWriteLimit, long newReadLimit,
|
||||||
long newCheckInterval) {
|
long newCheckInterval) {
|
||||||
this.configure(newWriteLimit, newReadLimit);
|
configure(newWriteLimit, newReadLimit);
|
||||||
this.configure(newCheckInterval);
|
configure(newCheckInterval);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -26,7 +26,6 @@ public abstract class AbstractInternalLogger implements InternalLogger {
|
||||||
* Creates a new instance.
|
* Creates a new instance.
|
||||||
*/
|
*/
|
||||||
protected AbstractInternalLogger() {
|
protected AbstractInternalLogger() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isEnabled(InternalLogLevel level) {
|
public boolean isEnabled(InternalLogLevel level) {
|
||||||
|
|
|
@ -41,6 +41,5 @@ public final class ExternalResourceUtil {
|
||||||
}
|
}
|
||||||
|
|
||||||
private ExternalResourceUtil() {
|
private ExternalResourceUtil() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -363,7 +363,6 @@ public class HashedWheelTimer implements Timer {
|
||||||
private long tick;
|
private long tick;
|
||||||
|
|
||||||
Worker() {
|
Worker() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void run() {
|
public void run() {
|
||||||
|
|
|
@ -25,7 +25,6 @@ public final class CaseIgnoringComparator implements Comparator<String>, Seriali
|
||||||
public static final CaseIgnoringComparator INSTANCE = new CaseIgnoringComparator();
|
public static final CaseIgnoringComparator INSTANCE = new CaseIgnoringComparator();
|
||||||
|
|
||||||
private CaseIgnoringComparator() {
|
private CaseIgnoringComparator() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public int compare(String o1, String o2) {
|
public int compare(String o1, String o2) {
|
||||||
|
|
|
@ -611,7 +611,7 @@ public final class ConcurrentHashMap<K, V> extends AbstractMap<K, V>
|
||||||
}
|
}
|
||||||
segmentShift = 32 - sshift;
|
segmentShift = 32 - sshift;
|
||||||
segmentMask = ssize - 1;
|
segmentMask = ssize - 1;
|
||||||
this.segments = Segment.newArray(ssize);
|
segments = Segment.newArray(ssize);
|
||||||
|
|
||||||
if (initialCapacity > MAXIMUM_CAPACITY) {
|
if (initialCapacity > MAXIMUM_CAPACITY) {
|
||||||
initialCapacity = MAXIMUM_CAPACITY;
|
initialCapacity = MAXIMUM_CAPACITY;
|
||||||
|
@ -625,8 +625,8 @@ public final class ConcurrentHashMap<K, V> extends AbstractMap<K, V>
|
||||||
cap <<= 1;
|
cap <<= 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < this.segments.length; ++ i) {
|
for (int i = 0; i < segments.length; ++ i) {
|
||||||
this.segments[i] = new Segment<K, V>(cap, loadFactor);
|
segments[i] = new Segment<K, V>(cap, loadFactor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1178,11 +1178,11 @@ public final class ConcurrentHashMap<K, V> extends AbstractMap<K, V>
|
||||||
extends HashIterator implements ReusableIterator<K>, Enumeration<K> {
|
extends HashIterator implements ReusableIterator<K>, Enumeration<K> {
|
||||||
|
|
||||||
public K next() {
|
public K next() {
|
||||||
return super.nextEntry().key();
|
return nextEntry().key();
|
||||||
}
|
}
|
||||||
|
|
||||||
public K nextElement() {
|
public K nextElement() {
|
||||||
return super.nextEntry().key();
|
return nextEntry().key();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1190,11 +1190,11 @@ public final class ConcurrentHashMap<K, V> extends AbstractMap<K, V>
|
||||||
extends HashIterator implements ReusableIterator<V>, Enumeration<V> {
|
extends HashIterator implements ReusableIterator<V>, Enumeration<V> {
|
||||||
|
|
||||||
public V next() {
|
public V next() {
|
||||||
return super.nextEntry().value();
|
return nextEntry().value();
|
||||||
}
|
}
|
||||||
|
|
||||||
public V nextElement() {
|
public V nextElement() {
|
||||||
return super.nextEntry().value();
|
return nextEntry().value();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1214,8 +1214,8 @@ public final class ConcurrentHashMap<K, V> extends AbstractMap<K, V>
|
||||||
}
|
}
|
||||||
|
|
||||||
public SimpleEntry(Entry<? extends K, ? extends V> entry) {
|
public SimpleEntry(Entry<? extends K, ? extends V> entry) {
|
||||||
this.key = entry.getKey();
|
key = entry.getKey();
|
||||||
this.value = entry.getValue();
|
value = entry.getValue();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1283,7 +1283,7 @@ public final class ConcurrentHashMap<K, V> extends AbstractMap<K, V>
|
||||||
throw new NullPointerException();
|
throw new NullPointerException();
|
||||||
}
|
}
|
||||||
V v = super.setValue(value);
|
V v = super.setValue(value);
|
||||||
ConcurrentHashMap.this.put(getKey(), value);
|
put(getKey(), value);
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1292,7 +1292,7 @@ public final class ConcurrentHashMap<K, V> extends AbstractMap<K, V>
|
||||||
final class EntryIterator extends HashIterator implements
|
final class EntryIterator extends HashIterator implements
|
||||||
ReusableIterator<Entry<K, V>> {
|
ReusableIterator<Entry<K, V>> {
|
||||||
public Map.Entry<K, V> next() {
|
public Map.Entry<K, V> next() {
|
||||||
HashEntry<K, V> e = super.nextEntry();
|
HashEntry<K, V> e = nextEntry();
|
||||||
return new WriteThroughEntry(e.key(), e.value());
|
return new WriteThroughEntry(e.key(), e.value());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1316,7 +1316,7 @@ public final class ConcurrentHashMap<K, V> extends AbstractMap<K, V>
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean contains(Object o) {
|
public boolean contains(Object o) {
|
||||||
return ConcurrentHashMap.this.containsKey(o);
|
return containsKey(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -1349,7 +1349,7 @@ public final class ConcurrentHashMap<K, V> extends AbstractMap<K, V>
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean contains(Object o) {
|
public boolean contains(Object o) {
|
||||||
return ConcurrentHashMap.this.containsValue(o);
|
return containsValue(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -1370,7 +1370,7 @@ public final class ConcurrentHashMap<K, V> extends AbstractMap<K, V>
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Map.Entry<?, ?> e = (Map.Entry<?, ?>) o;
|
Map.Entry<?, ?> e = (Map.Entry<?, ?>) o;
|
||||||
V v = ConcurrentHashMap.this.get(e.getKey());
|
V v = get(e.getKey());
|
||||||
return v != null && v.equals(e.getValue());
|
return v != null && v.equals(e.getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -611,7 +611,7 @@ public final class ConcurrentIdentityHashMap<K, V> extends AbstractMap<K, V>
|
||||||
}
|
}
|
||||||
segmentShift = 32 - sshift;
|
segmentShift = 32 - sshift;
|
||||||
segmentMask = ssize - 1;
|
segmentMask = ssize - 1;
|
||||||
this.segments = Segment.newArray(ssize);
|
segments = Segment.newArray(ssize);
|
||||||
|
|
||||||
if (initialCapacity > MAXIMUM_CAPACITY) {
|
if (initialCapacity > MAXIMUM_CAPACITY) {
|
||||||
initialCapacity = MAXIMUM_CAPACITY;
|
initialCapacity = MAXIMUM_CAPACITY;
|
||||||
|
@ -625,8 +625,8 @@ public final class ConcurrentIdentityHashMap<K, V> extends AbstractMap<K, V>
|
||||||
cap <<= 1;
|
cap <<= 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < this.segments.length; ++ i) {
|
for (int i = 0; i < segments.length; ++ i) {
|
||||||
this.segments[i] = new Segment<K, V>(cap, loadFactor);
|
segments[i] = new Segment<K, V>(cap, loadFactor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1178,11 +1178,11 @@ public final class ConcurrentIdentityHashMap<K, V> extends AbstractMap<K, V>
|
||||||
extends HashIterator implements ReusableIterator<K>, Enumeration<K> {
|
extends HashIterator implements ReusableIterator<K>, Enumeration<K> {
|
||||||
|
|
||||||
public K next() {
|
public K next() {
|
||||||
return super.nextEntry().key();
|
return nextEntry().key();
|
||||||
}
|
}
|
||||||
|
|
||||||
public K nextElement() {
|
public K nextElement() {
|
||||||
return super.nextEntry().key();
|
return nextEntry().key();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1190,11 +1190,11 @@ public final class ConcurrentIdentityHashMap<K, V> extends AbstractMap<K, V>
|
||||||
extends HashIterator implements ReusableIterator<V>, Enumeration<V> {
|
extends HashIterator implements ReusableIterator<V>, Enumeration<V> {
|
||||||
|
|
||||||
public V next() {
|
public V next() {
|
||||||
return super.nextEntry().value();
|
return nextEntry().value();
|
||||||
}
|
}
|
||||||
|
|
||||||
public V nextElement() {
|
public V nextElement() {
|
||||||
return super.nextEntry().value();
|
return nextEntry().value();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1214,8 +1214,8 @@ public final class ConcurrentIdentityHashMap<K, V> extends AbstractMap<K, V>
|
||||||
}
|
}
|
||||||
|
|
||||||
public SimpleEntry(Entry<? extends K, ? extends V> entry) {
|
public SimpleEntry(Entry<? extends K, ? extends V> entry) {
|
||||||
this.key = entry.getKey();
|
key = entry.getKey();
|
||||||
this.value = entry.getValue();
|
value = entry.getValue();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1283,7 +1283,7 @@ public final class ConcurrentIdentityHashMap<K, V> extends AbstractMap<K, V>
|
||||||
throw new NullPointerException();
|
throw new NullPointerException();
|
||||||
}
|
}
|
||||||
V v = super.setValue(value);
|
V v = super.setValue(value);
|
||||||
ConcurrentIdentityHashMap.this.put(getKey(), value);
|
put(getKey(), value);
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1292,7 +1292,7 @@ public final class ConcurrentIdentityHashMap<K, V> extends AbstractMap<K, V>
|
||||||
final class EntryIterator extends HashIterator implements
|
final class EntryIterator extends HashIterator implements
|
||||||
ReusableIterator<Entry<K, V>> {
|
ReusableIterator<Entry<K, V>> {
|
||||||
public Map.Entry<K, V> next() {
|
public Map.Entry<K, V> next() {
|
||||||
HashEntry<K, V> e = super.nextEntry();
|
HashEntry<K, V> e = nextEntry();
|
||||||
return new WriteThroughEntry(e.key(), e.value());
|
return new WriteThroughEntry(e.key(), e.value());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1316,7 +1316,7 @@ public final class ConcurrentIdentityHashMap<K, V> extends AbstractMap<K, V>
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean contains(Object o) {
|
public boolean contains(Object o) {
|
||||||
return ConcurrentIdentityHashMap.this.containsKey(o);
|
return containsKey(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -1349,7 +1349,7 @@ public final class ConcurrentIdentityHashMap<K, V> extends AbstractMap<K, V>
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean contains(Object o) {
|
public boolean contains(Object o) {
|
||||||
return ConcurrentIdentityHashMap.this.containsValue(o);
|
return containsValue(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -1370,7 +1370,7 @@ public final class ConcurrentIdentityHashMap<K, V> extends AbstractMap<K, V>
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Map.Entry<?, ?> e = (Map.Entry<?, ?>) o;
|
Map.Entry<?, ?> e = (Map.Entry<?, ?>) o;
|
||||||
V v = ConcurrentIdentityHashMap.this.get(e.getKey());
|
V v = get(e.getKey());
|
||||||
return v != null && v.equals(e.getValue());
|
return v != null && v.equals(e.getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -192,8 +192,8 @@ public final class ConcurrentIdentityWeakKeyHashMap<K, V> extends AbstractMap<K,
|
||||||
ReferenceQueue<Object> refQueue) {
|
ReferenceQueue<Object> refQueue) {
|
||||||
this.hash = hash;
|
this.hash = hash;
|
||||||
this.next = next;
|
this.next = next;
|
||||||
this.keyRef = new WeakKeyReference<K>(key, hash, refQueue);
|
keyRef = new WeakKeyReference<K>(key, hash, refQueue);
|
||||||
this.valueRef = value;
|
valueRef = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
|
@ -215,7 +215,7 @@ public final class ConcurrentIdentityWeakKeyHashMap<K, V> extends AbstractMap<K,
|
||||||
}
|
}
|
||||||
|
|
||||||
void setValue(V value) {
|
void setValue(V value) {
|
||||||
this.valueRef = value;
|
valueRef = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
|
@ -675,7 +675,7 @@ public final class ConcurrentIdentityWeakKeyHashMap<K, V> extends AbstractMap<K,
|
||||||
}
|
}
|
||||||
segmentShift = 32 - sshift;
|
segmentShift = 32 - sshift;
|
||||||
segmentMask = ssize - 1;
|
segmentMask = ssize - 1;
|
||||||
this.segments = Segment.newArray(ssize);
|
segments = Segment.newArray(ssize);
|
||||||
|
|
||||||
if (initialCapacity > MAXIMUM_CAPACITY) {
|
if (initialCapacity > MAXIMUM_CAPACITY) {
|
||||||
initialCapacity = MAXIMUM_CAPACITY;
|
initialCapacity = MAXIMUM_CAPACITY;
|
||||||
|
@ -689,8 +689,8 @@ public final class ConcurrentIdentityWeakKeyHashMap<K, V> extends AbstractMap<K,
|
||||||
cap <<= 1;
|
cap <<= 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < this.segments.length; ++ i) {
|
for (int i = 0; i < segments.length; ++ i) {
|
||||||
this.segments[i] = new Segment<K, V>(cap, loadFactor);
|
segments[i] = new Segment<K, V>(cap, loadFactor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1258,11 +1258,11 @@ public final class ConcurrentIdentityWeakKeyHashMap<K, V> extends AbstractMap<K,
|
||||||
extends HashIterator implements ReusableIterator<K>, Enumeration<K> {
|
extends HashIterator implements ReusableIterator<K>, Enumeration<K> {
|
||||||
|
|
||||||
public K next() {
|
public K next() {
|
||||||
return super.nextEntry().key();
|
return nextEntry().key();
|
||||||
}
|
}
|
||||||
|
|
||||||
public K nextElement() {
|
public K nextElement() {
|
||||||
return super.nextEntry().key();
|
return nextEntry().key();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1270,11 +1270,11 @@ public final class ConcurrentIdentityWeakKeyHashMap<K, V> extends AbstractMap<K,
|
||||||
extends HashIterator implements ReusableIterator<V>, Enumeration<V> {
|
extends HashIterator implements ReusableIterator<V>, Enumeration<V> {
|
||||||
|
|
||||||
public V next() {
|
public V next() {
|
||||||
return super.nextEntry().value();
|
return nextEntry().value();
|
||||||
}
|
}
|
||||||
|
|
||||||
public V nextElement() {
|
public V nextElement() {
|
||||||
return super.nextEntry().value();
|
return nextEntry().value();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1294,8 +1294,8 @@ public final class ConcurrentIdentityWeakKeyHashMap<K, V> extends AbstractMap<K,
|
||||||
}
|
}
|
||||||
|
|
||||||
public SimpleEntry(Entry<? extends K, ? extends V> entry) {
|
public SimpleEntry(Entry<? extends K, ? extends V> entry) {
|
||||||
this.key = entry.getKey();
|
key = entry.getKey();
|
||||||
this.value = entry.getValue();
|
value = entry.getValue();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1363,7 +1363,7 @@ public final class ConcurrentIdentityWeakKeyHashMap<K, V> extends AbstractMap<K,
|
||||||
throw new NullPointerException();
|
throw new NullPointerException();
|
||||||
}
|
}
|
||||||
V v = super.setValue(value);
|
V v = super.setValue(value);
|
||||||
ConcurrentIdentityWeakKeyHashMap.this.put(getKey(), value);
|
put(getKey(), value);
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1372,7 +1372,7 @@ public final class ConcurrentIdentityWeakKeyHashMap<K, V> extends AbstractMap<K,
|
||||||
final class EntryIterator extends HashIterator implements
|
final class EntryIterator extends HashIterator implements
|
||||||
ReusableIterator<Entry<K, V>> {
|
ReusableIterator<Entry<K, V>> {
|
||||||
public Map.Entry<K, V> next() {
|
public Map.Entry<K, V> next() {
|
||||||
HashEntry<K, V> e = super.nextEntry();
|
HashEntry<K, V> e = nextEntry();
|
||||||
return new WriteThroughEntry(e.key(), e.value());
|
return new WriteThroughEntry(e.key(), e.value());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1396,7 +1396,7 @@ public final class ConcurrentIdentityWeakKeyHashMap<K, V> extends AbstractMap<K,
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean contains(Object o) {
|
public boolean contains(Object o) {
|
||||||
return ConcurrentIdentityWeakKeyHashMap.this.containsKey(o);
|
return containsKey(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -1429,7 +1429,7 @@ public final class ConcurrentIdentityWeakKeyHashMap<K, V> extends AbstractMap<K,
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean contains(Object o) {
|
public boolean contains(Object o) {
|
||||||
return ConcurrentIdentityWeakKeyHashMap.this.containsValue(o);
|
return containsValue(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -1450,7 +1450,7 @@ public final class ConcurrentIdentityWeakKeyHashMap<K, V> extends AbstractMap<K,
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Map.Entry<?, ?> e = (Map.Entry<?, ?>) o;
|
Map.Entry<?, ?> e = (Map.Entry<?, ?>) o;
|
||||||
V v = ConcurrentIdentityWeakKeyHashMap.this.get(e.getKey());
|
V v = get(e.getKey());
|
||||||
return v != null && v.equals(e.getValue());
|
return v != null && v.equals(e.getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -192,8 +192,8 @@ public final class ConcurrentWeakKeyHashMap<K, V> extends AbstractMap<K, V> impl
|
||||||
ReferenceQueue<Object> refQueue) {
|
ReferenceQueue<Object> refQueue) {
|
||||||
this.hash = hash;
|
this.hash = hash;
|
||||||
this.next = next;
|
this.next = next;
|
||||||
this.keyRef = new WeakKeyReference<K>(key, hash, refQueue);
|
keyRef = new WeakKeyReference<K>(key, hash, refQueue);
|
||||||
this.valueRef = value;
|
valueRef = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
|
@ -215,7 +215,7 @@ public final class ConcurrentWeakKeyHashMap<K, V> extends AbstractMap<K, V> impl
|
||||||
}
|
}
|
||||||
|
|
||||||
void setValue(V value) {
|
void setValue(V value) {
|
||||||
this.valueRef = value;
|
valueRef = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
|
@ -675,7 +675,7 @@ public final class ConcurrentWeakKeyHashMap<K, V> extends AbstractMap<K, V> impl
|
||||||
}
|
}
|
||||||
segmentShift = 32 - sshift;
|
segmentShift = 32 - sshift;
|
||||||
segmentMask = ssize - 1;
|
segmentMask = ssize - 1;
|
||||||
this.segments = Segment.newArray(ssize);
|
segments = Segment.newArray(ssize);
|
||||||
|
|
||||||
if (initialCapacity > MAXIMUM_CAPACITY) {
|
if (initialCapacity > MAXIMUM_CAPACITY) {
|
||||||
initialCapacity = MAXIMUM_CAPACITY;
|
initialCapacity = MAXIMUM_CAPACITY;
|
||||||
|
@ -689,8 +689,8 @@ public final class ConcurrentWeakKeyHashMap<K, V> extends AbstractMap<K, V> impl
|
||||||
cap <<= 1;
|
cap <<= 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < this.segments.length; ++ i) {
|
for (int i = 0; i < segments.length; ++ i) {
|
||||||
this.segments[i] = new Segment<K, V>(cap, loadFactor);
|
segments[i] = new Segment<K, V>(cap, loadFactor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1258,11 +1258,11 @@ public final class ConcurrentWeakKeyHashMap<K, V> extends AbstractMap<K, V> impl
|
||||||
extends HashIterator implements ReusableIterator<K>, Enumeration<K> {
|
extends HashIterator implements ReusableIterator<K>, Enumeration<K> {
|
||||||
|
|
||||||
public K next() {
|
public K next() {
|
||||||
return super.nextEntry().key();
|
return nextEntry().key();
|
||||||
}
|
}
|
||||||
|
|
||||||
public K nextElement() {
|
public K nextElement() {
|
||||||
return super.nextEntry().key();
|
return nextEntry().key();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1270,11 +1270,11 @@ public final class ConcurrentWeakKeyHashMap<K, V> extends AbstractMap<K, V> impl
|
||||||
extends HashIterator implements ReusableIterator<V>, Enumeration<V> {
|
extends HashIterator implements ReusableIterator<V>, Enumeration<V> {
|
||||||
|
|
||||||
public V next() {
|
public V next() {
|
||||||
return super.nextEntry().value();
|
return nextEntry().value();
|
||||||
}
|
}
|
||||||
|
|
||||||
public V nextElement() {
|
public V nextElement() {
|
||||||
return super.nextEntry().value();
|
return nextEntry().value();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1294,8 +1294,8 @@ public final class ConcurrentWeakKeyHashMap<K, V> extends AbstractMap<K, V> impl
|
||||||
}
|
}
|
||||||
|
|
||||||
public SimpleEntry(Entry<? extends K, ? extends V> entry) {
|
public SimpleEntry(Entry<? extends K, ? extends V> entry) {
|
||||||
this.key = entry.getKey();
|
key = entry.getKey();
|
||||||
this.value = entry.getValue();
|
value = entry.getValue();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1363,7 +1363,7 @@ public final class ConcurrentWeakKeyHashMap<K, V> extends AbstractMap<K, V> impl
|
||||||
throw new NullPointerException();
|
throw new NullPointerException();
|
||||||
}
|
}
|
||||||
V v = super.setValue(value);
|
V v = super.setValue(value);
|
||||||
ConcurrentWeakKeyHashMap.this.put(getKey(), value);
|
put(getKey(), value);
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1372,7 +1372,7 @@ public final class ConcurrentWeakKeyHashMap<K, V> extends AbstractMap<K, V> impl
|
||||||
final class EntryIterator extends HashIterator implements
|
final class EntryIterator extends HashIterator implements
|
||||||
ReusableIterator<Entry<K, V>> {
|
ReusableIterator<Entry<K, V>> {
|
||||||
public Map.Entry<K, V> next() {
|
public Map.Entry<K, V> next() {
|
||||||
HashEntry<K, V> e = super.nextEntry();
|
HashEntry<K, V> e = nextEntry();
|
||||||
return new WriteThroughEntry(e.key(), e.value());
|
return new WriteThroughEntry(e.key(), e.value());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1396,7 +1396,7 @@ public final class ConcurrentWeakKeyHashMap<K, V> extends AbstractMap<K, V> impl
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean contains(Object o) {
|
public boolean contains(Object o) {
|
||||||
return ConcurrentWeakKeyHashMap.this.containsKey(o);
|
return containsKey(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -1429,7 +1429,7 @@ public final class ConcurrentWeakKeyHashMap<K, V> extends AbstractMap<K, V> impl
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean contains(Object o) {
|
public boolean contains(Object o) {
|
||||||
return ConcurrentWeakKeyHashMap.this.containsValue(o);
|
return containsValue(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -1450,7 +1450,7 @@ public final class ConcurrentWeakKeyHashMap<K, V> extends AbstractMap<K, V> impl
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Map.Entry<?, ?> e = (Map.Entry<?, ?>) o;
|
Map.Entry<?, ?> e = (Map.Entry<?, ?>) o;
|
||||||
V v = ConcurrentWeakKeyHashMap.this.get(e.getKey());
|
V v = get(e.getKey());
|
||||||
return v != null && v.equals(e.getValue());
|
return v != null && v.equals(e.getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -48,6 +48,5 @@ public final class DeadLockProofWorker {
|
||||||
}
|
}
|
||||||
|
|
||||||
private DeadLockProofWorker() {
|
private DeadLockProofWorker() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -121,6 +121,5 @@ public final class ExecutorUtil {
|
||||||
}
|
}
|
||||||
|
|
||||||
private ExecutorUtil() {
|
private ExecutorUtil() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -102,7 +102,7 @@ public final class JZlib {
|
||||||
// Bit length codes must not exceed MAX_BL_BITS bits
|
// Bit length codes must not exceed MAX_BL_BITS bits
|
||||||
static final int MAX_BL_BITS = 7;
|
static final int MAX_BL_BITS = 7;
|
||||||
|
|
||||||
static enum WrapperType {
|
enum WrapperType {
|
||||||
NONE, ZLIB, GZIP, ZLIB_OR_NONE
|
NONE, ZLIB, GZIP, ZLIB_OR_NONE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -203,7 +203,6 @@ public abstract class AbstractSocketServerBootstrapTest {
|
||||||
final StringBuffer result = new StringBuffer();
|
final StringBuffer result = new StringBuffer();
|
||||||
|
|
||||||
ParentChannelHandler() {
|
ParentChannelHandler() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -114,7 +114,6 @@ public class CompleteChannelFutureTest {
|
||||||
private static final long serialVersionUID = 7059276744882005047L;
|
private static final long serialVersionUID = 7059276744882005047L;
|
||||||
|
|
||||||
ExpectedError() {
|
ExpectedError() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -145,7 +145,6 @@ public abstract class AbstractSocketEchoTest {
|
||||||
volatile int counter;
|
volatile int counter;
|
||||||
|
|
||||||
EchoHandler() {
|
EchoHandler() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -89,7 +89,6 @@ public class NioServerSocketShutdownTimeTest {
|
||||||
volatile boolean closed;
|
volatile boolean closed;
|
||||||
|
|
||||||
DummyHandler() {
|
DummyHandler() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -147,7 +147,6 @@ public abstract class AbstractSocketFixedLengthEchoTest {
|
||||||
volatile int counter;
|
volatile int counter;
|
||||||
|
|
||||||
EchoHandler() {
|
EchoHandler() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -77,17 +77,17 @@ public class WebSocketRequestBuilder {
|
||||||
}
|
}
|
||||||
|
|
||||||
public WebSocketRequestBuilder version13() {
|
public WebSocketRequestBuilder version13() {
|
||||||
this.version = WebSocketVersion.V13;
|
version = WebSocketVersion.V13;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public WebSocketRequestBuilder version8() {
|
public WebSocketRequestBuilder version8() {
|
||||||
this.version = WebSocketVersion.V08;
|
version = WebSocketVersion.V08;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public WebSocketRequestBuilder version00() {
|
public WebSocketRequestBuilder version00() {
|
||||||
this.version = null;
|
version = null;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -96,7 +96,6 @@ public class ReplayingDecoderTest {
|
||||||
private static final class LineDecoder extends ReplayingDecoder<VoidEnum> {
|
private static final class LineDecoder extends ReplayingDecoder<VoidEnum> {
|
||||||
|
|
||||||
LineDecoder() {
|
LineDecoder() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -155,7 +155,6 @@ public abstract class AbstractSocketCompatibleObjectStreamEchoTest {
|
||||||
volatile int counter;
|
volatile int counter;
|
||||||
|
|
||||||
EchoHandler() {
|
EchoHandler() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -156,7 +156,6 @@ public abstract class AbstractSocketObjectStreamEchoTest {
|
||||||
volatile int counter;
|
volatile int counter;
|
||||||
|
|
||||||
EchoHandler() {
|
EchoHandler() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -259,7 +259,6 @@ public abstract class AbstractSocketSpdyEchoTest {
|
||||||
final boolean server;
|
final boolean server;
|
||||||
|
|
||||||
EchoHandler(ChannelBuffer frames, boolean server) {
|
EchoHandler(ChannelBuffer frames, boolean server) {
|
||||||
super();
|
|
||||||
this.frames = frames;
|
this.frames = frames;
|
||||||
this.server = server;
|
this.server = server;
|
||||||
}
|
}
|
||||||
|
|
|
@ -273,7 +273,6 @@ public class SpdySessionHandlerTest {
|
||||||
private final boolean server;
|
private final boolean server;
|
||||||
|
|
||||||
EchoHandler(int closeSignal, boolean server) {
|
EchoHandler(int closeSignal, boolean server) {
|
||||||
super();
|
|
||||||
this.closeSignal = closeSignal;
|
this.closeSignal = closeSignal;
|
||||||
this.server = server;
|
this.server = server;
|
||||||
}
|
}
|
||||||
|
|
|
@ -160,7 +160,6 @@ public abstract class AbstractSocketStringEchoTest {
|
||||||
volatile int counter;
|
volatile int counter;
|
||||||
|
|
||||||
EchoHandler() {
|
EchoHandler() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -87,7 +87,6 @@ public class ThreadRenamingRunnableTest {
|
||||||
private static class ImmediateExecutor implements Executor {
|
private static class ImmediateExecutor implements Executor {
|
||||||
|
|
||||||
ImmediateExecutor() {
|
ImmediateExecutor() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void execute(Runnable command) {
|
public void execute(Runnable command) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user