Small improvement

This commit is contained in:
M66B 2021-06-17 13:33:08 +02:00
parent 8cbfdee008
commit fe22ed2a8b
1 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ import java.util.Collections;
import java.util.List;
import java.util.Locale;
class CharsetHelper {
public class CharsetHelper {
private static final int MAX_SAMPLE_SIZE = 8192;
private static String CHINESE = new Locale("zh").getLanguage();
private static final List<String> COMMON = Collections.unmodifiableList(Arrays.asList(
@ -62,7 +62,7 @@ class CharsetHelper {
}
}
static Charset detect(String text) {
public static Charset detect(String text) {
try {
byte[] octets = text.getBytes(StandardCharsets.ISO_8859_1);