Fix typos in docs.
Motivation: There are same typos in the docs. Modifications: Fix typos. Docs only changing. Result: More correct docs.
This commit is contained in:
parent
650406c0a3
commit
73f23c5faa
@ -48,7 +48,7 @@ public class HAProxyTLV extends DefaultByteBufHolder {
|
||||
OTHER;
|
||||
|
||||
/**
|
||||
* Returns the the {@link Type} for a specific byte value as defined in the PROXY protocol 1.5 spec
|
||||
* Returns the {@link Type} for a specific byte value as defined in the PROXY protocol 1.5 spec
|
||||
* <p>
|
||||
* If the byte value is not an official one, it will return {@link Type#OTHER}.
|
||||
*
|
||||
|
@ -136,7 +136,7 @@ public abstract class HttpContentEncoder extends MessageToMessageCodec<HttpReque
|
||||
}
|
||||
|
||||
if (isFull) {
|
||||
// Pass through the full response with empty content and continue waiting for the the next resp.
|
||||
// Pass through the full response with empty content and continue waiting for the next resp.
|
||||
if (!((ByteBufHolder) res).content().isReadable()) {
|
||||
out.add(ReferenceCountUtil.retain(res));
|
||||
break;
|
||||
|
@ -99,7 +99,7 @@ public final class CorsConfigBuilder {
|
||||
/**
|
||||
* Web browsers may set the 'Origin' request header to 'null' if a resource is loaded
|
||||
* from the local file system. Calling this method will enable a successful CORS response
|
||||
* with a {@code "null"} value for the the CORS response header 'Access-Control-Allow-Origin'.
|
||||
* with a {@code "null"} value for the CORS response header 'Access-Control-Allow-Origin'.
|
||||
*
|
||||
* @return {@link CorsConfigBuilder} to support method chaining.
|
||||
*/
|
||||
|
@ -123,7 +123,7 @@ public class DefaultHttp2HeadersDecoder implements Http2HeadersDecoder, Http2Hea
|
||||
throw e;
|
||||
} catch (Throwable e) {
|
||||
// Default handler for any other types of errors that may have occurred. For example,
|
||||
// the the Header builder throws IllegalArgumentException if the key or value was invalid
|
||||
// the Header builder throws IllegalArgumentException if the key or value was invalid
|
||||
// for any reason (e.g. the key was an invalid pseudo-header).
|
||||
throw connectionError(COMPRESSION_ERROR, e, e.getMessage());
|
||||
}
|
||||
|
@ -456,7 +456,7 @@ public class DefaultHttp2RemoteFlowController implements Http2RemoteFlowControll
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the the head of the pending queue, or {@code null} if empty.
|
||||
* Returns the head of the pending queue, or {@code null} if empty.
|
||||
*/
|
||||
private FlowControlled peek() {
|
||||
return pendingWriteQueue.peek();
|
||||
|
@ -168,8 +168,8 @@ final class HpackHuffmanDecoder {
|
||||
* currentBits represents how many of the low order bits of current are actually valid.
|
||||
* currentBits will vary between 0 and 15.
|
||||
*
|
||||
* symbolBits is the number of bits of the the symbol being decoded, *including* all those
|
||||
* of the parent nodes. symbolBits tells how far down the tree we are. For example, when
|
||||
* symbolBits is the number of bits of the symbol being decoded, *including* all those of
|
||||
* the parent nodes. symbolBits tells how far down the tree we are. For example, when
|
||||
* decoding the invalid sequence {0xff, 0xff}, currentBits will be 0, but symbolBits will be
|
||||
* 16. This is used to know if buf ended early (before consuming a whole symbol) or if
|
||||
* there is too much padding.
|
||||
|
@ -162,7 +162,7 @@ public final class Http2CodecUtil {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a buffer containing the the {@link #CONNECTION_PREFACE}.
|
||||
* Returns a buffer containing the {@link #CONNECTION_PREFACE}.
|
||||
*/
|
||||
public static ByteBuf connectionPrefaceBuf() {
|
||||
// Return a duplicate so that modifications to the reader index will not affect the original buffer.
|
||||
|
@ -44,7 +44,7 @@ public class CompatibleMarshallingDecoder extends ReplayingDecoder<Void> {
|
||||
* for the {@link Channel}
|
||||
* @param maxObjectSize
|
||||
* the maximal size (in bytes) of the {@link Object} to unmarshal. Once the size is
|
||||
* exceeded the {@link Channel} will get closed. Use a a maxObjectSize of
|
||||
* exceeded the {@link Channel} will get closed. Use a maxObjectSize of
|
||||
* {@link Integer#MAX_VALUE} to disable this. You should only do this if you are sure
|
||||
* that the received Objects will never be big and the sending side are trusted, as this
|
||||
* opens the possibility for a DOS-Attack due an {@link OutOfMemoryError}.
|
||||
|
@ -23,7 +23,7 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
import io.netty.handler.codec.MessageToByteEncoder;
|
||||
|
||||
/**
|
||||
* An encoder that prepends the the Google Protocol Buffers
|
||||
* An encoder that prepends the Google Protocol Buffers
|
||||
* <a href="https://developers.google.com/protocol-buffers/docs/encoding?csw=1#varints">Base
|
||||
* 128 Varints</a> integer length field. For example:
|
||||
* <pre>
|
||||
|
@ -96,7 +96,7 @@ public abstract class AbstractScheduledEventExecutor extends AbstractEventExecut
|
||||
|
||||
/**
|
||||
* Return the {@link Runnable} which is ready to be executed with the given {@code nanoTime}.
|
||||
* You should use {@link #nanoTime()} to retrieve the the correct {@code nanoTime}.
|
||||
* You should use {@link #nanoTime()} to retrieve the correct {@code nanoTime}.
|
||||
*/
|
||||
protected final Runnable pollScheduledTask(long nanoTime) {
|
||||
assert inEventLoop();
|
||||
|
@ -195,7 +195,7 @@ public class SearchDomainTest {
|
||||
resolved = assertResolve(resolver, "host2");
|
||||
assertEquals(store.getAddress("host2.bar.com"), resolved);
|
||||
|
||||
// "host3" resolves via the the "foo.com" search path as it is the first one
|
||||
// "host3" resolves via the "foo.com" search path as it is the first one
|
||||
resolved = assertResolve(resolver, "host3");
|
||||
assertEquals(store.getAddress("host3.foo.com"), resolved);
|
||||
|
||||
|
@ -97,7 +97,7 @@ public final class ChannelFlushPromiseNotifier {
|
||||
|
||||
/**
|
||||
* Notify all {@link ChannelFuture}s that were registered with {@link #add(ChannelPromise, int)} and
|
||||
* their pendingDatasize is smaller after the the current writeCounter returned by {@link #writeCounter()}.
|
||||
* their pendingDatasize is smaller after the current writeCounter returned by {@link #writeCounter()}.
|
||||
*
|
||||
* After a {@link ChannelFuture} was notified it will be removed from this {@link ChannelFlushPromiseNotifier} and
|
||||
* so not receive anymore notification.
|
||||
|
Loading…
Reference in New Issue
Block a user