1
0
mirror of https://github.com/nitu2003/T18n synced 2024-11-21 15:18:47 +00:00

Remove usage of Lists

This commit is contained in:
Taskeren 2019-06-25 21:38:19 +08:00
parent 5b058e8d58
commit 574e37e9f7

View File

@ -3,10 +3,9 @@ package cn.glycol.t18n;
import java.io.File;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.util.ArrayList;
import java.util.List;
import com.google.common.collect.Lists;
public class LanguageMapBuilder {
public static LanguageMap fromFile(File langFile) {
@ -27,7 +26,7 @@ public class LanguageMapBuilder {
}
}
return Lists.<String>newArrayList();
return new ArrayList<>();
}
private static LanguageMap getLanguageMapFromLines(LanguageMapConfiguration config, List<String> lines) {