Minor - favor Guava's UTF-8 charset constant; sensible -> sensitive in issue template

This commit is contained in:
ljacqu
2016-09-16 23:38:36 +02:00
parent d1b7c0ed99
commit c1e90a8faf
5 changed files with 14 additions and 16 deletions
@@ -1,5 +1,6 @@
package tools.messages.translation;
import com.google.common.base.Charsets;
import com.google.common.io.Resources;
import com.google.gson.Gson;
import fr.xephi.authme.output.MessageKey;
@@ -14,7 +15,6 @@ import tools.utils.ToolsConstants;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.nio.charset.Charset;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
@@ -56,7 +56,7 @@ public class ImportMessagesTask implements ToolTask {
private LanguageExport getLanguageExportFromUrl(String location) {
try {
URL url = new URL(location);
String json = Resources.toString(url, Charset.forName("UTF-8"));
String json = Resources.toString(url, Charsets.UTF_8);
return gson.fromJson(json, LanguageExport.class);
} catch (IOException e) {
throw new IllegalStateException(e);