INNER CODE UNIT · Java
MainApp
ron190/jsql-injection · view/src/main/java/com/jsql/MainApp.java:20
public class MainApp {
private static final Logger LOGGER = LogManager.getRootLogger();
private static final InjectionModel INJECTION_MODEL; // required to load preferences first
static {
System.setProperty("jdk.httpclient.allowRestrictedHeaders", "connection,content-length,expect,host,upgrade");
System.setProperty("log4j2.formatMsgNoLookups", "true");
if (GraphicsEnvironment.isHeadless()) {
LOGGER.log(Level.ERROR, "Headless runtime not supported, use default Java runtime instead");
System.exit(1);
}
INJECTION_MODEL = new InjectionModel();
MainApp.INJECTION_MODEL.getMediatorUtils().preferencesUtil().loadSavedPreferences();
if (SystemInfo.isLinux) { // enable flatlaf decorated window