From 4eef26a4c8774ffabcacaec03e2218fe393f3e33 Mon Sep 17 00:00:00 2001 From: Taskeren Date: Sun, 7 Jul 2019 14:20:45 +0800 Subject: [PATCH] =?UTF-8?q?[-]=20=E7=A8=8D=E5=BE=AE=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=BA=86=E4=B8=80=E7=82=B9=E7=82=B9=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cn/glycol/t18n/I18n.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/cn/glycol/t18n/I18n.java b/src/main/java/cn/glycol/t18n/I18n.java index 8d22207..816e193 100644 --- a/src/main/java/cn/glycol/t18n/I18n.java +++ b/src/main/java/cn/glycol/t18n/I18n.java @@ -4,6 +4,7 @@ import java.nio.charset.Charset; import java.util.ArrayList; import java.util.List; +@SuppressWarnings("unused") public class I18n { private static LanguageMap map; @@ -61,7 +62,7 @@ public class I18n { } /** 使字符串列表扁平化。 */ - public static String flattenList(List vlist) { + private static String flattenList(List vlist) { String v = ""; for(String o : vlist) { @@ -87,7 +88,8 @@ public class I18n { return getLanguageMapSafe().containsKey(key); } - public static boolean canTranslate(String key) { + /** @see #hasKey(String) */ + private static boolean canTranslate(String key) { return hasKey(key); }