Remove compilation warning on Language.java

This commit is contained in:
AnimeGitB 2022-10-28 22:13:13 +10:30
parent 2dd644f28b
commit f07ce48b24

View File

@ -356,6 +356,7 @@ public final class Language {
); );
} }
@SuppressWarnings("unchecked")
private static Int2ObjectMap<TextStrings> loadTextMapsCache() throws Exception { private static Int2ObjectMap<TextStrings> loadTextMapsCache() throws Exception {
try (ObjectInputStream file = new ObjectInputStream(new BufferedInputStream(Files.newInputStream(TEXTMAP_CACHE_PATH), 0x100000))) { try (ObjectInputStream file = new ObjectInputStream(new BufferedInputStream(Files.newInputStream(TEXTMAP_CACHE_PATH), 0x100000))) {
final int fileVersion = file.readInt(); final int fileVersion = file.readInt();