Added a console log to warn the user when "always close the launcher" option turned on

This commit is contained in:
huangyuhui
2016-01-12 21:51:55 +08:00
parent 9835aa4110
commit f32ce42af3
9 changed files with 21 additions and 15 deletions

View File

@@ -72,10 +72,10 @@ public class Hex {
return new String(encodeHex(data));
}
protected static int toDigit(char ch, int index) throws Exception {
protected static int toDigit(char ch, int index) {
int digit = Character.digit(ch, 16);
if (digit == -1)
throw new Exception("Illegal hexadecimal character " + ch + " at index " + index);
throw new IllegalArgumentException("Illegal hexadecimal character " + ch + " at index " + index);
return digit;
}

View File

@@ -74,8 +74,6 @@ public class FileUtils {
public static void cleanDirectory(File directory)
throws IOException {
if (!directory.exists()) {
//String message = directory + " does not exist";
//throw new IllegalArgumentException(message);
directory.mkdirs();
return;
}