mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 12:22:10 -08:00
Made utility classes final to explicitly forbid it's inheritance
This commit is contained in:
parent
f309717616
commit
498c8cf60c
80 changed files with 83 additions and 83 deletions
|
|
@ -37,7 +37,7 @@ import java.util.Scanner;
|
|||
/**
|
||||
* @author Lymia
|
||||
*/
|
||||
public class ExtensionPackageLoader {
|
||||
public final class ExtensionPackageLoader {
|
||||
public static ExtensionPackage loadExtension(File directory) throws IOException {
|
||||
if(!directory.exists ()) throw new RuntimeException("File not found "+directory);
|
||||
if(!directory.isDirectory()) throw new RuntimeException(directory+" is not a directory");
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ import javax.mail.internet.MimeMessage;
|
|||
import mage.server.util.ConfigSettings;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
public class GmailClient {
|
||||
public final class GmailClient {
|
||||
|
||||
private static final Logger logger = Logger.getLogger(Main.class);
|
||||
private static final JsonFactory JSON_FACTORY = JacksonFactory.getDefaultInstance();
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import javax.mail.internet.MimeMessage;
|
|||
import mage.server.util.ConfigSettings;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
public class MailClient {
|
||||
public final class MailClient {
|
||||
|
||||
private static final Logger logger = Logger.getLogger(Main.class);
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import javax.ws.rs.core.MediaType;
|
|||
import mage.server.util.ConfigSettings;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
public class MailgunClient {
|
||||
public final class MailgunClient {
|
||||
|
||||
private static final Logger logger = Logger.getLogger(Main.class);
|
||||
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ import java.util.*;
|
|||
/**
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class Main {
|
||||
public final class Main {
|
||||
|
||||
private static final Logger logger = Logger.getLogger(Main.class);
|
||||
private static final MageVersion version = new MageVersion(MageVersion.MAGE_VERSION_MAJOR, MageVersion.MAGE_VERSION_MINOR, MageVersion.MAGE_VERSION_PATCH, MageVersion.MAGE_VERSION_MINOR_PATCH, MageVersion.MAGE_VERSION_INFO);
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ import org.apache.log4j.Logger;
|
|||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class Config {
|
||||
public final class Config {
|
||||
|
||||
private static final Logger logger = Logger.getLogger(Config.class);
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import mage.players.Player;
|
|||
/**
|
||||
* @author nantuko
|
||||
*/
|
||||
public class Splitter {
|
||||
public final class Splitter {
|
||||
|
||||
public static List<UUID> split(Game game, UUID playerId) {
|
||||
List<UUID> players = new ArrayList<>();
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ import java.util.regex.Pattern;
|
|||
/**
|
||||
* @author nantuko
|
||||
*/
|
||||
public class SystemUtil {
|
||||
public final class SystemUtil {
|
||||
|
||||
public static final DateFormat dateFormat = new SimpleDateFormat("yy-M-dd HH:mm:ss");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue