doc: Fix typo in code comments (#1721)

This commit is contained in:
M4Y 2020-09-10 22:59:45 +08:00 committed by GitHub
parent d5eb5f473f
commit 10aa39f822
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -181,7 +181,7 @@ public class CtSph implements Sph {
* be created if the resource doesn't relate one. * be created if the resource doesn't relate one.
* *
* <p>Same resource({@link ResourceWrapper#equals(Object)}) will share the same * <p>Same resource({@link ResourceWrapper#equals(Object)}) will share the same
* {@link ProcessorSlotChain} globally, no matter in witch {@link Context}.<p/> * {@link ProcessorSlotChain} globally, no matter in which {@link Context}.<p/>
* *
* <p> * <p>
* Note that total {@link ProcessorSlot} count must not exceed {@link Constants#MAX_SLOT_CHAIN_SIZE}, * Note that total {@link ProcessorSlot} count must not exceed {@link Constants#MAX_SLOT_CHAIN_SIZE},

View File

@ -51,7 +51,7 @@ public class ClusterBuilderSlot extends AbstractLinkedProcessorSlot<DefaultNode>
/** /**
* <p> * <p>
* Remember that same resource({@link ResourceWrapper#equals(Object)}) will share * 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...)}, * code goes into {@link #entry(Context, ResourceWrapper, DefaultNode, int, boolean, Object...)},
* the resource name must be same but context name may not. * the resource name must be same but context name may not.
* </p> * </p>

View File

@ -47,7 +47,7 @@ public interface Encoder<R> {
* Encode the given object into a byte array with the default charset. * Encode the given object into a byte array with the default charset.
* *
* @param r the object to encode * @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) * @throws Exception error occurs when encoding the object (e.g. IO fails)
*/ */
byte[] encode(R r) throws Exception; byte[] encode(R r) throws Exception;