forked from Steven/DeepJ
Updated Main Class to remove unnecessary space
This commit is contained in:
parent
d1419d48e0
commit
787664bb38
@ -12,7 +12,6 @@ import java.nio.charset.StandardCharsets;
|
|||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
public class Translator {
|
public class Translator {
|
||||||
public static String globalAuthKey = "null";
|
public static String globalAuthKey = "null";
|
||||||
|
|
||||||
public static void setGlobalAuthKey(String key) {
|
public static void setGlobalAuthKey(String key) {
|
||||||
globalAuthKey = key;
|
globalAuthKey = key;
|
||||||
}
|
}
|
||||||
@ -53,7 +52,6 @@ instead of "new Translator(String authKey)". NOTE: This will work but just some
|
|||||||
}
|
}
|
||||||
request = new Request(authKey);
|
request = new Request(authKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
public String translate(Language langToTranslateTo, String sourceMessage) {
|
public String translate(Language langToTranslateTo, String sourceMessage) {
|
||||||
String response = "Error processing request";
|
String response = "Error processing request";
|
||||||
try {
|
try {
|
||||||
@ -88,7 +86,6 @@ instead of "new Translator(String authKey)". NOTE: This will work but just some
|
|||||||
return response.body();
|
return response.body();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum Language {
|
public enum Language {
|
||||||
Bulgarian("BG"),
|
Bulgarian("BG"),
|
||||||
Czech("CS"),
|
Czech("CS"),
|
||||||
|
Loading…
Reference in New Issue
Block a user