mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Suppress warnings
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package forge.tournament.system;
|
package forge.tournament.system;
|
||||||
|
|
||||||
import com.thoughtworks.xstream.io.HierarchicalStreamWriter;
|
import com.thoughtworks.xstream.io.HierarchicalStreamWriter;
|
||||||
|
|
||||||
import forge.LobbyPlayer;
|
import forge.LobbyPlayer;
|
||||||
import forge.player.GamePlayerUtil;
|
import forge.player.GamePlayerUtil;
|
||||||
import forge.util.MyRandom;
|
import forge.util.MyRandom;
|
||||||
@@ -10,6 +11,7 @@ import java.util.ArrayList;
|
|||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@SuppressWarnings("serial")
|
||||||
public abstract class AbstractTournament implements Serializable {
|
public abstract class AbstractTournament implements Serializable {
|
||||||
protected int activeRound;
|
protected int activeRound;
|
||||||
protected int totalRounds;
|
protected int totalRounds;
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ package forge.tournament.system;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@SuppressWarnings("serial")
|
||||||
public class TournamentBracket extends AbstractTournament {
|
public class TournamentBracket extends AbstractTournament {
|
||||||
// Bracket implies single elimination. For non-single elimination, use Swiss or RoundRobin
|
// Bracket implies single elimination. For non-single elimination, use Swiss or RoundRobin
|
||||||
public TournamentBracket(int ttlRnds, int pairingAmount) {
|
public TournamentBracket(int ttlRnds, int pairingAmount) {
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package forge.tournament.system;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@SuppressWarnings("serial")
|
||||||
public class TournamentRoundRobin extends AbstractTournament {
|
public class TournamentRoundRobin extends AbstractTournament {
|
||||||
// Round Robin tournaments where you play everyone in your group/pod. Declare winner or break to top X
|
// Round Robin tournaments where you play everyone in your group/pod. Declare winner or break to top X
|
||||||
public TournamentRoundRobin(int ttlRnds, List<TournamentPlayer> allPlayers) {
|
public TournamentRoundRobin(int ttlRnds, List<TournamentPlayer> allPlayers) {
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package forge.tournament.system;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@SuppressWarnings("serial")
|
||||||
public class TournamentSwiss extends AbstractTournament {
|
public class TournamentSwiss extends AbstractTournament {
|
||||||
|
|
||||||
public TournamentSwiss(int ttlRnds, List<TournamentPlayer> allPlayers) {
|
public TournamentSwiss(int ttlRnds, List<TournamentPlayer> allPlayers) {
|
||||||
|
|||||||
Reference in New Issue
Block a user