From fddd4968b6e3f21a42bae50899d4752466c7200f Mon Sep 17 00:00:00 2001 From: Wisser Date: Sat, 5 Oct 2024 08:29:26 +0200 Subject: [PATCH] 16.4.2.22 --- src/main/engine/net/sf/jailer/JailerVersion.java | 2 +- src/main/gui/net/sf/jailer/ui/Environment.java | 12 +----------- .../gui/net/sf/jailer/ui/util/UpdateInfoManager.java | 7 +------ 3 files changed, 3 insertions(+), 18 deletions(-) diff --git a/src/main/engine/net/sf/jailer/JailerVersion.java b/src/main/engine/net/sf/jailer/JailerVersion.java index 8af24b751..e0f00c3ef 100644 --- a/src/main/engine/net/sf/jailer/JailerVersion.java +++ b/src/main/engine/net/sf/jailer/JailerVersion.java @@ -25,7 +25,7 @@ public class JailerVersion { /** * The Jailer version. */ - public static final String VERSION = "16.4.2.20"; + public static final String VERSION = "16.4.2.22"; /** * The Jailer working tables version. diff --git a/src/main/gui/net/sf/jailer/ui/Environment.java b/src/main/gui/net/sf/jailer/ui/Environment.java index b58f184d0..6b908b7fa 100644 --- a/src/main/gui/net/sf/jailer/ui/Environment.java +++ b/src/main/gui/net/sf/jailer/ui/Environment.java @@ -233,7 +233,6 @@ public FileVisitResult postVisitDirectory(Path dir, IOException e) // + 4 no longer used + (!testCreateTempFile() ? 8 : 0) + (isJPacked() ? 1000 : 0) - + rpmOffset() + stateOffset; AWTWatchdog.start(); LogUtil.setWarn(new LogUtil.Warn() { @@ -252,19 +251,10 @@ public void warn(Throwable t) { if (toBeLogged != null) { LogUtil.warn(toBeLogged); } - state += rpmOffset(); return args; } - private static boolean rpm; - - private static int rpmOffset() { - int offset = 0; - if (rpm) { - offset = -100; - } - return offset; - } + public static boolean rpm; private static File applicationBase = null; diff --git a/src/main/gui/net/sf/jailer/ui/util/UpdateInfoManager.java b/src/main/gui/net/sf/jailer/ui/util/UpdateInfoManager.java index a621f791e..a516e745c 100644 --- a/src/main/gui/net/sf/jailer/ui/util/UpdateInfoManager.java +++ b/src/main/gui/net/sf/jailer/ui/util/UpdateInfoManager.java @@ -84,7 +84,7 @@ public void run() { startShutdownHook(); String param = "?r=" + URLEncoder.encode(System.getProperty("os.arch"), "UTF-8") + "&jversion=" + URLEncoder.encode(System.getProperty("java.version") + "/" + System.getProperty("java.vm.vendor") + "/" + System.getProperty("java.vm.name") + "/" + System.getProperty("os.name"), "UTF-8") + "/(" + Environment.state + ")" - + "&modul=" + URLEncoder.encode((DataModelManagerDialog.lastSessionRestored? modul.toLowerCase() : modul) + (UIUtil.subModule != 0? UIUtil.subModule : "") + (UIUtil.plaf == PLAF.FLATDARK? "d" : ""), "UTF-8") + + "&modul=" + URLEncoder.encode((DataModelManagerDialog.lastSessionRestored? modul.toLowerCase() : modul) + (UIUtil.subModule != 0? UIUtil.subModule : "") + (UIUtil.plaf == PLAF.FLATDARK? "d" : "") + (Environment.rpm? "r" : ""), "UTF-8") + "&ts=" + URLEncoder.encode(new Date().toString(), "UTF-8") + "&uuid=" + URLEncoder.encode(uuid.toString(), "UTF-8") + "&version=" + URLEncoder.encode(JailerVersion.VERSION, "UTF-8") @@ -92,11 +92,6 @@ public void run() { + ("&c=" + uimCnt) + UISettings.restoreStats(); - - // TODO - JOptionPane.showMessageDialog(null, param, "Error", JOptionPane.ERROR_MESSAGE); - - String inputLine = null; for (int i = 0; i < versionURL.length; ++i) { try {