Alexander Kuznetsov 2015-03-21 00:46:13 +03:00
parent d300938502
commit 9b793115f7
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ public class EnglishLetterDecoderEncoder implements LetterDecoderEncoder {
c = DASH_CODE; c = DASH_CODE;
} }
if (c < 0 || c > 27) if (c < 0 || c > 27)
throw new WrongCharaterException("Symblo " + string.charAt(i) + " is not small cirillic letter"); throw new WrongCharaterException("Symbol " + string.charAt(i) + " is not small cirillic letter");
result = result * 28 + c; result = result * 28 + c;
} }
for (int i = string.length(); i < 6; i++) { for (int i = string.length(); i < 6; i++) {

View File

@ -48,7 +48,7 @@ public class RussianLetterDecoderEncoder implements LetterDecoderEncoder {
} }
if (c == EE_CHAR) c = E_CHAR; if (c == EE_CHAR) c = E_CHAR;
if (c < 0 || c > 33) if (c < 0 || c > 33)
throw new WrongCharaterException("Symblo " + string.charAt(i) + " is not small cirillic letter"); throw new WrongCharaterException("Symbol " + string.charAt(i) + " is not small cirillic letter");
result = result * 34 + c; result = result * 34 + c;
} }
for (int i = string.length(); i < WORD_PART_LENGHT; i++) { for (int i = string.length(); i < WORD_PART_LENGHT; i++) {