From 73f23c5faa967748bdda826278ac5e63f715ae09 Mon Sep 17 00:00:00 2001 From: Shohei Kamimori Date: Wed, 14 Feb 2018 10:41:49 +0900 Subject: [PATCH] Fix typos in docs. Motivation: There are same typos in the docs. Modifications: Fix typos. Docs only changing. Result: More correct docs. --- .../main/java/io/netty/handler/codec/haproxy/HAProxyTLV.java | 2 +- .../java/io/netty/handler/codec/http/HttpContentEncoder.java | 2 +- .../io/netty/handler/codec/http/cors/CorsConfigBuilder.java | 2 +- .../netty/handler/codec/http2/DefaultHttp2HeadersDecoder.java | 2 +- .../handler/codec/http2/DefaultHttp2RemoteFlowController.java | 2 +- .../io/netty/handler/codec/http2/HpackHuffmanDecoder.java | 4 ++-- .../java/io/netty/handler/codec/http2/Http2CodecUtil.java | 2 +- .../codec/marshalling/CompatibleMarshallingDecoder.java | 2 +- .../codec/protobuf/ProtobufVarint32LengthFieldPrepender.java | 2 +- .../netty/util/concurrent/AbstractScheduledEventExecutor.java | 2 +- .../src/test/java/io/netty/resolver/dns/SearchDomainTest.java | 2 +- .../java/io/netty/channel/ChannelFlushPromiseNotifier.java | 2 +- 12 files changed, 13 insertions(+), 13 deletions(-) diff --git a/codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyTLV.java b/codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyTLV.java index 7fbd787888..380c6aa058 100644 --- a/codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyTLV.java +++ b/codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyTLV.java @@ -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 *

* If the byte value is not an official one, it will return {@link Type#OTHER}. * diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/HttpContentEncoder.java b/codec-http/src/main/java/io/netty/handler/codec/http/HttpContentEncoder.java index bd59bc2e86..0078edc421 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/http/HttpContentEncoder.java +++ b/codec-http/src/main/java/io/netty/handler/codec/http/HttpContentEncoder.java @@ -136,7 +136,7 @@ public abstract class HttpContentEncoder extends MessageToMessageCodec { * 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}. diff --git a/codec/src/main/java/io/netty/handler/codec/protobuf/ProtobufVarint32LengthFieldPrepender.java b/codec/src/main/java/io/netty/handler/codec/protobuf/ProtobufVarint32LengthFieldPrepender.java index 39208c9293..40bfca4d9f 100644 --- a/codec/src/main/java/io/netty/handler/codec/protobuf/ProtobufVarint32LengthFieldPrepender.java +++ b/codec/src/main/java/io/netty/handler/codec/protobuf/ProtobufVarint32LengthFieldPrepender.java @@ -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 * Base * 128 Varints integer length field. For example: *

diff --git a/common/src/main/java/io/netty/util/concurrent/AbstractScheduledEventExecutor.java b/common/src/main/java/io/netty/util/concurrent/AbstractScheduledEventExecutor.java
index 0fbcc28a05..3043b1709f 100644
--- a/common/src/main/java/io/netty/util/concurrent/AbstractScheduledEventExecutor.java
+++ b/common/src/main/java/io/netty/util/concurrent/AbstractScheduledEventExecutor.java
@@ -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();
diff --git a/resolver-dns/src/test/java/io/netty/resolver/dns/SearchDomainTest.java b/resolver-dns/src/test/java/io/netty/resolver/dns/SearchDomainTest.java
index 2e33110034..3888778ced 100644
--- a/resolver-dns/src/test/java/io/netty/resolver/dns/SearchDomainTest.java
+++ b/resolver-dns/src/test/java/io/netty/resolver/dns/SearchDomainTest.java
@@ -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);
 
diff --git a/transport/src/main/java/io/netty/channel/ChannelFlushPromiseNotifier.java b/transport/src/main/java/io/netty/channel/ChannelFlushPromiseNotifier.java
index f1797630c4..26594a38df 100644
--- a/transport/src/main/java/io/netty/channel/ChannelFlushPromiseNotifier.java
+++ b/transport/src/main/java/io/netty/channel/ChannelFlushPromiseNotifier.java
@@ -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.