Fix typo in AbstractSearchProcessorFactory.java (#11562)

Motivation:

Fixed typo.

occurences -> occurrences
This commit is contained in:
Ikko Ashimine 2021-08-10 01:28:40 +09:00 committed by Chris Vest
parent 6a92a3354e
commit c95f99c81c

View File

@ -39,7 +39,7 @@ package io.netty.buffer.search;
* {@link io.netty.buffer.ByteBuf}s). A new instance should be created with {@link AbstractSearchProcessorFactory} for
* every search session. However, a {@link SearchProcessor} can (and should) be reused within the search session,
* eg. when searching for all occurrences of the {@code needle} within the same {@code haystack}. That way, it can
* also detect overlapping occurrences of the {@code needle} (eg. a string "ABABAB" contains two occurences of "BAB"
* also detect overlapping occurrences of the {@code needle} (eg. a string "ABABAB" contains two occurrences of "BAB"
* that overlap by one character "B"). For this to work correctly, after an occurrence of the {@code needle} is
* found ending at index {@code idx}, the search should continue starting from the index {@code idx + 1}.
* <br>