From 10aa39f82281f879abfc563effc4e9fac7acdf64 Mon Sep 17 00:00:00 2001 From: M4Y <576811031@qq.com> Date: Thu, 10 Sep 2020 22:59:45 +0800 Subject: [PATCH] doc: Fix typo in code comments (#1721) --- sentinel-core/src/main/java/com/alibaba/csp/sentinel/CtSph.java | 2 +- .../csp/sentinel/slots/clusterbuilder/ClusterBuilderSlot.java | 2 +- .../alibaba/csp/sentinel/transport/command/codec/Encoder.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sentinel-core/src/main/java/com/alibaba/csp/sentinel/CtSph.java b/sentinel-core/src/main/java/com/alibaba/csp/sentinel/CtSph.java index 5c5b137b..84ebf17d 100755 --- a/sentinel-core/src/main/java/com/alibaba/csp/sentinel/CtSph.java +++ b/sentinel-core/src/main/java/com/alibaba/csp/sentinel/CtSph.java @@ -181,7 +181,7 @@ public class CtSph implements Sph { * be created if the resource doesn't relate one. * *

Same resource({@link ResourceWrapper#equals(Object)}) will share the same - * {@link ProcessorSlotChain} globally, no matter in witch {@link Context}.

+ * {@link ProcessorSlotChain} globally, no matter in which {@link Context}.

* *

* Note that total {@link ProcessorSlot} count must not exceed {@link Constants#MAX_SLOT_CHAIN_SIZE}, diff --git a/sentinel-core/src/main/java/com/alibaba/csp/sentinel/slots/clusterbuilder/ClusterBuilderSlot.java b/sentinel-core/src/main/java/com/alibaba/csp/sentinel/slots/clusterbuilder/ClusterBuilderSlot.java index 62ea366a..5994be47 100755 --- a/sentinel-core/src/main/java/com/alibaba/csp/sentinel/slots/clusterbuilder/ClusterBuilderSlot.java +++ b/sentinel-core/src/main/java/com/alibaba/csp/sentinel/slots/clusterbuilder/ClusterBuilderSlot.java @@ -51,7 +51,7 @@ public class ClusterBuilderSlot extends AbstractLinkedProcessorSlot /** *

* Remember that same resource({@link ResourceWrapper#equals(Object)}) will share - * the same {@link ProcessorSlotChain} globally, no matter in witch context. So if + * the same {@link ProcessorSlotChain} globally, no matter in which context. So if * code goes into {@link #entry(Context, ResourceWrapper, DefaultNode, int, boolean, Object...)}, * the resource name must be same but context name may not. *

diff --git a/sentinel-transport/sentinel-transport-netty-http/src/main/java/com/alibaba/csp/sentinel/transport/command/codec/Encoder.java b/sentinel-transport/sentinel-transport-netty-http/src/main/java/com/alibaba/csp/sentinel/transport/command/codec/Encoder.java index 634c24cf..7f8b8e52 100755 --- a/sentinel-transport/sentinel-transport-netty-http/src/main/java/com/alibaba/csp/sentinel/transport/command/codec/Encoder.java +++ b/sentinel-transport/sentinel-transport-netty-http/src/main/java/com/alibaba/csp/sentinel/transport/command/codec/Encoder.java @@ -47,7 +47,7 @@ public interface Encoder { * Encode the given object into a byte array with the default charset. * * @param r the object to encode - * @return the encoded byte buffer, witch is already flipped. + * @return the encoded byte buffer, which is already flipped. * @throws Exception error occurs when encoding the object (e.g. IO fails) */ byte[] encode(R r) throws Exception;