mirror of
https://github.com/magefree/mage.git
synced 2025-12-29 23:12: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
|
|
@ -10,7 +10,7 @@ import java.util.List;
|
|||
/**
|
||||
* @author noxx
|
||||
*/
|
||||
public class EntityManagerTest {
|
||||
public final class EntityManagerTest {
|
||||
|
||||
private static DateFormat timeFormatter = SimpleDateFormat.getTimeInstance(SimpleDateFormat.FULL);
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import java.util.*;
|
|||
/**
|
||||
* @author noxx
|
||||
*/
|
||||
public class Statistics {
|
||||
public final class Statistics {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
List<Log> logs = EntityManager.instance.getAllLogs();
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import mage.view.CardView;
|
|||
* @version 0.1 02.11.2010
|
||||
* @author nantuko
|
||||
*/
|
||||
public class CardUtil {
|
||||
public final class CardUtil {
|
||||
|
||||
private static final String regexBlack = ".*\\x7b.{0,2}B.{0,2}\\x7d.*";
|
||||
private static final String regexBlue = ".*\\x7b.{0,2}U.{0,2}\\x7d.*";
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import mage.remote.traffic.ZippedObjectImpl;
|
|||
*
|
||||
* @author ayrat
|
||||
*/
|
||||
public class CompressUtil {
|
||||
public final class CompressUtil {
|
||||
|
||||
/**
|
||||
* Defines should data be compressed or not. True by default. Read from
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ import mage.util.RandomUtil;
|
|||
*
|
||||
* @author nantuko
|
||||
*/
|
||||
public class DeckBuilder {
|
||||
public final class DeckBuilder {
|
||||
|
||||
private static final int DECK_COUNT40[] = {3, 6, 6, 4, 3, 2};
|
||||
private static final int DECK_COUNT60[] = {4, 9, 9, 5, 5, 3};
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import java.util.concurrent.TimeUnit;
|
|||
* @author ayrat
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public class ThreadUtils {
|
||||
public final class ThreadUtils {
|
||||
|
||||
public static final ThreadPoolExecutor threadPool;
|
||||
public static final ThreadPoolExecutor threadPool2;
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import java.util.Properties;
|
|||
/**
|
||||
* @author noxx
|
||||
*/
|
||||
public class PropertiesUtil {
|
||||
public final class PropertiesUtil {
|
||||
|
||||
private static final Logger logger = Logger.getLogger(PropertiesUtil.class);
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ package mage.utils.properties;
|
|||
/**
|
||||
* @author noxx
|
||||
*/
|
||||
public class PropertyKeys {
|
||||
public final class PropertyKeys {
|
||||
|
||||
public static final String KEY_DB_LOG_URL = "db.log.url";
|
||||
public static final String KEY_DB_FEEDBACK_URL = "db.feedback.url";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue