Compare commits

...

1 commit

Author SHA1 Message Date
emaiannone
b922a19ebe Refactor Member Ignoring Method smell in CharsetRecog_sbcs class 2020-01-19 16:02:13 +01:00

View file

@ -266,8 +266,7 @@ abstract class CharsetRecog_sbcs extends CharsetRecognizer {
return match (det, ngrams, byteMap, (byte)0x20);
}
int match(CharsetDetector det, int[] ngrams, byte[] byteMap, byte spaceChar)
{
static int match(CharsetDetector det, int[] ngrams, byte[] byteMap, byte spaceChar) {
NGramParser parser = new NGramParser(ngrams, byteMap);
return parser.parse(det, spaceChar);
}