Made utility classes final to explicitly forbid it's inheritance

This commit is contained in:
vraskulin 2017-02-27 17:03:38 +03:00
parent f309717616
commit 498c8cf60c
80 changed files with 83 additions and 83 deletions

View file

@ -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);

View file

@ -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();

View file

@ -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.*";

View file

@ -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

View file

@ -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};

View file

@ -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;

View file

@ -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);

View file

@ -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";