diff --git a/java_console/inifile/src/main/java/com/rusefi/tune/xml/Msq.java b/java_console/inifile/src/main/java/com/rusefi/tune/xml/Msq.java index dbedf3f153..2a6161632b 100644 --- a/java_console/inifile/src/main/java/com/rusefi/tune/xml/Msq.java +++ b/java_console/inifile/src/main/java/com/rusefi/tune/xml/Msq.java @@ -5,6 +5,7 @@ import com.opensr5.ConfigurationImage; import com.opensr5.ini.IniFileModel; import com.opensr5.ini.field.ArrayIniField; import com.opensr5.ini.field.IniField; +import com.rusefi.rusEFIVersion; import com.rusefi.xml.XmlUtil; import org.jetbrains.annotations.NotNull; @@ -26,7 +27,7 @@ public class Msq { public Bibliography bibliography = new Bibliography(); public Msq() { - versionInfo = new VersionInfo("rusEFI+2020"); + versionInfo = new VersionInfo(Integer.toString(rusEFIVersion.CONSOLE_VERSION)); } @NotNull diff --git a/java_console/shared_io/src/main/java/com/rusefi/shared/ConnectionAndMeta.java b/java_console/shared_io/src/main/java/com/rusefi/shared/ConnectionAndMeta.java index db43845ea0..6e7880a2df 100644 --- a/java_console/shared_io/src/main/java/com/rusefi/shared/ConnectionAndMeta.java +++ b/java_console/shared_io/src/main/java/com/rusefi/shared/ConnectionAndMeta.java @@ -16,7 +16,7 @@ public class ConnectionAndMeta { private static final int BUFFER_SIZE = 32 * 1024; public static final int STEPS = 1000; - private String zipFileName; + private final String zipFileName; private HttpsURLConnection httpConnection; private long completeFileSize; private long lastModified; diff --git a/java_tools/ts_plugin_launcher/src/main/java/com/rusefi/ts_plugin/TsPluginLauncher.java b/java_tools/ts_plugin_launcher/src/main/java/com/rusefi/ts_plugin/TsPluginLauncher.java index 5a3a8f81c5..0ddaf2bee6 100644 --- a/java_tools/ts_plugin_launcher/src/main/java/com/rusefi/ts_plugin/TsPluginLauncher.java +++ b/java_tools/ts_plugin_launcher/src/main/java/com/rusefi/ts_plugin/TsPluginLauncher.java @@ -7,16 +7,17 @@ import org.putgemin.VerticalFlowLayout; import javax.swing.*; /** - * This class is the more permanent part of the plug, it's responsible for refreshing and launcher PluginEntry via reflections. + * This class is the more permanent part of the plugin, it's responsible for refreshing and launcher PluginEntry via reflections. * which downloads the main more volatile UI part (PluginEntry) * * by the way TS installs stuff into %user%\.efianalytics\TunerStudio\plugins folder * @see PluginLauncherSandbox sandbox for this * see PluginEntry + * @see Updater */ public class TsPluginLauncher implements ApplicationPlugin { - public static final int BUILD_VERSION = 3; - static final String VERSION = "2020.alpha." + BUILD_VERSION; + public static final int BUILD_VERSION = 4; + static final String VERSION = "2021.alpha." + BUILD_VERSION; private static final String HELP_URL = "https://github.com/rusefi/rusefi/wiki/TS-Plugin"; private final JPanel content = new JPanel(new VerticalFlowLayout()); diff --git a/java_tools/ts_plugin_launcher/src/main/java/com/rusefi/ts_plugin/Updater.java b/java_tools/ts_plugin_launcher/src/main/java/com/rusefi/ts_plugin/Updater.java index ddda709055..8b3d977cb4 100644 --- a/java_tools/ts_plugin_launcher/src/main/java/com/rusefi/ts_plugin/Updater.java +++ b/java_tools/ts_plugin_launcher/src/main/java/com/rusefi/ts_plugin/Updater.java @@ -22,6 +22,7 @@ import static com.rusefi.ts_plugin.TsPluginLauncher.VERSION; /** * Download fresh copy of {@link #PLUGIN_BODY_JAR} and launch {@link #PLUGIN_ENTRY_CLASS} via reflection. + * @see ConnectionAndMeta#BASE_URL_LATEST */ public class Updater { private static final String PLUGIN_ENTRY_CLASS = "com.rusefi.ts_plugin.PluginEntry";