Skip to content
Snippets Groups Projects
Commit 6abe1697 authored by helene ortiz's avatar helene ortiz
Browse files

5.1.2-SNAPSHOT

parent d8c32436
No related branches found
Tags 4.3.25
No related merge requests found
......@@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>fr.ill.ics</groupId>
<artifactId>nomadgui</artifactId>
<version>5.1.1-SNAPSHOT</version>
<version>5.1.2-SNAPSHOT</version>
<name>NomadGUI</name>
<description>Graphical user interface for Nomad</description>
<scm>
......
......@@ -21,6 +21,8 @@ package fr.ill.ics.client.control.version;
import java.io.BufferedWriter;
import java.io.File;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
......@@ -52,7 +54,7 @@ public class VersionChecker {
private static VersionChecker instance = null;
private String compatibleVersion;
private static final Logger LOGGER = Logger.getLogger(VersionChecker.class.getName());
private VersionChecker() {
}
......@@ -115,10 +117,7 @@ public class VersionChecker {
public void downgrade() {
System.out.println("VersionChecker / method downgrade / start");
LOGGER.log(Level.WARNING, "VersionChecker / method downgrade / start");
try {
// Create Json file with necessary information to squeeze login on next launch
......@@ -128,7 +127,7 @@ public class VersionChecker {
jsonObject.put(INSTRUMENT_NAME_KEY, RemoteControlManager.getInstance().getInstrumentName());
jsonObject.put(INSTRUMENT_CODE_KEY, RemoteControlManager.getInstance().getInstrumentCode());
System.out.println(" Json content " + jsonObject.toJSONString());
LOGGER.log(Level.WARNING, " Json content " + jsonObject.toJSONString());
BufferedWriter writer = Nomad.initFile(JSON_VERSION_FILE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment