рефакторинг. вынес в обобщенную часть бд, но еще не все
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package Common.Utils;
|
||||
import Common.CommonConstants;
|
||||
import Common.Database.Database;
|
||||
import Common.Database.VisualiserDatabase;
|
||||
import com.google.gson.Gson;
|
||||
import com.google.gson.GsonBuilder;
|
||||
import org.apache.commons.io.FileUtils;
|
||||
@@ -29,6 +31,9 @@ public class CommonUtils {
|
||||
public static Loggable MainLog;
|
||||
public static Semaphore date_semaphore = new Semaphore(1);
|
||||
public static long last_ticks = CommonConstants.Nan;
|
||||
//--------------------------------------------------
|
||||
//главная база данных
|
||||
public static VisualiserDatabase db = null;
|
||||
//------------------------------------------------------------------------
|
||||
public static Object requireNonNullElse(Object value, Object default_value) {
|
||||
return (value != null) ? value : default_value;
|
||||
|
||||
Reference in New Issue
Block a user