mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Spellchecker Long word IOOBE
This commit is contained in:
committed by
Alexey Gopachenko
parent
c9b3c94af2
commit
82368193f4
@@ -25,7 +25,7 @@ public final class Encoder {
|
||||
|
||||
@Nullable
|
||||
public UnitBitSet encode(@NotNull CharSequence letters, boolean force) throws EncodingException {
|
||||
if (UnitBitSet.MAX_CHARS_IN_WORD <= letters.length()) return null;
|
||||
if (UnitBitSet.MAX_CHARS_IN_WORD <= letters.length() + offset) return null;
|
||||
int unknownLetters = 0;
|
||||
UnitBitSet bs = new UnitBitSet();
|
||||
for (int i = 0; i < letters.length(); i++) {
|
||||
|
||||
Reference in New Issue
Block a user