mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
program towards Interface rather than implementations
This commit is contained in:
parent
b04c436801
commit
ae7919cd07
100 changed files with 218 additions and 209 deletions
|
|
@ -187,7 +187,7 @@ public enum UserManager {
|
|||
calendarRemove.add(Calendar.SECOND, -1 * SERVER_TIMEOUTS_USER_REMOVE_FROM_SERVER_AFTER_SECS);
|
||||
List<User> toRemove = new ArrayList<>();
|
||||
logger.debug("Start Check Expired");
|
||||
ArrayList<User> userList = new ArrayList<>();
|
||||
List<User> userList = new ArrayList<>();
|
||||
final Lock r = lock.readLock();
|
||||
r.lock();
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ public final class SystemUtil {
|
|||
|
||||
String name;
|
||||
boolean isSpecialCommand;
|
||||
ArrayList<String> commands = new ArrayList<>();
|
||||
List<String> commands = new ArrayList<>();
|
||||
|
||||
public CommandGroup(String name) {
|
||||
this(name, false);
|
||||
|
|
@ -114,14 +114,14 @@ public final class SystemUtil {
|
|||
}
|
||||
}
|
||||
|
||||
private static String getCardsListForSpecialInform(Game game, Set<UUID> cardsList, ArrayList<String> commandParams) {
|
||||
private static String getCardsListForSpecialInform(Game game, Set<UUID> cardsList, List<String> commandParams) {
|
||||
return getCardsListForSpecialInform(game, cardsList.stream().collect(Collectors.toList()), commandParams);
|
||||
}
|
||||
|
||||
private static String getCardsListForSpecialInform(Game game, List<UUID> cardsList, ArrayList<String> commandParams) {
|
||||
private static String getCardsListForSpecialInform(Game game, List<UUID> cardsList, List<String> commandParams) {
|
||||
// cards list with ext info
|
||||
|
||||
ArrayList<String> res = new ArrayList<>();
|
||||
List<String> res = new ArrayList<>();
|
||||
|
||||
for (UUID cardID : cardsList) {
|
||||
Card card = game.getCard(cardID);
|
||||
|
|
@ -276,7 +276,7 @@ public final class SystemUtil {
|
|||
// 3. process system commands
|
||||
// 4. run commands from selected group
|
||||
// 1. parse
|
||||
ArrayList<CommandGroup> groups = new ArrayList<>();
|
||||
List<CommandGroup> groups = new ArrayList<>();
|
||||
|
||||
try (Scanner scanner = new Scanner(f)) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue