mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
Minor improvements and threaded updating
This commit is contained in:
1 parent
e4d932e211
commit
bce27eb805
2 files changed
+17
-11
No files matched your search
@@ -334,13 +334,12 @@ public final class Utilities {
|
||||
* @return true if int
|
||||
*/
|
||||
public static boolean isInt(String string) {
|
||||
boolean x = false;
|
||||
try {
|
||||
Integer.parseInt(string);
|
||||
x = true;
|
||||
return true;
|
||||
} catch (Exception ex) {
|
||||
return false;
|
||||
}
|
||||
return x;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -454,10 +453,8 @@ public final class Utilities {
|
||||
* @param string the string to parse
|
||||
* @return ArrayList with string
|
||||
*/
|
||||
public static ArrayList<String> stringToList(String string) {
|
||||
ArrayList<String> i = new ArrayList<String>();
|
||||
i.add(string);
|
||||
return i;
|
||||
public static ArrayList<String> stringToList(final String string) {
|
||||
return new ArrayList<String>() {{ add(string); }};
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user