Trying to patch up some junky code in the management server

This commit is contained in:
ceikry 2021-08-10 00:02:47 -05:00
parent 7859c87565
commit 8efd877a11
8 changed files with 18 additions and 22 deletions

View file

@ -49,7 +49,7 @@ public final class PunishmentStorage {
return;
}
long end = Long.MAX_VALUE;
if (duration != -1l && duration != 0L) {
if (duration != -1L && duration != 0L) {
end = System.currentTimeMillis() + duration;
} else if (duration == 0L) {
end = 0L;

View file

@ -12,10 +12,7 @@ import java.nio.ByteBuffer;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.*;
import java.util.Map.Entry;
/**
@ -184,9 +181,7 @@ public final class CommunicationInfo {
String bl = set.getString("blocked");
if (bl != null && !bl.isEmpty()) {
tokens = bl.split(",");
for (String name : tokens) {
blocked.add(name);
}
blocked.addAll(Arrays.asList(tokens));
}
clanName = set.getString("clanName");
currentClan = set.getString("currentClan");
@ -236,6 +231,9 @@ public final class CommunicationInfo {
case 2:
tradeSetting = Integer.parseInt(tokens[2]);
break;
default:
System.out.println("Illegal arg count in chatsetting string: " + chatSettings);
break;
}
}
}

View file

@ -409,8 +409,9 @@ public final class StringUtils {
}
}
}
return -i_26_ + ((7 + i_30_) >> -662855293);
return -i_26_ + ((7 + i_30_) >> 3);
} catch (RuntimeException runtimeexception) {
runtimeexception.printStackTrace();
}
return 0;
}