Added a console log to warn the user when "always close the launcher" option turned on
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user