Skip to content
Snippets Groups Projects
Verified Commit 774f72c7 authored by BIGARET Sebastien's avatar BIGARET Sebastien
Browse files

Merge branch 'release/2.1'

parents 65d8f300 1d946faa
No related branches found
Tags v2.1
No related merge requests found
......@@ -100,8 +100,8 @@ public class Serveur extends UnicastRemoteObject implements RemoteServerInterfac
serveur = new Serveur();
boolean createDB = !new File(resultStoreDBFilename).exists();
Class.forName("org.sqlite.JDBC").newInstance();
try ( Connection c = DriverManager.getConnection("jdbc:sqlite:/" + resultStoreDBFilename) )
{
@SuppressWarnings("resource") // does not leak! it is used by the ResultStore object! do NOT close it!
Connection c = DriverManager.getConnection("jdbc:sqlite:/" + resultStoreDBFilename);
if (createDB)
{
c.createStatement().execute(ResultStore.RESULT_db_schema);
......@@ -118,7 +118,6 @@ public class Serveur extends UnicastRemoteObject implements RemoteServerInterfac
Log.log.log(Level.WARNING, "Unable to set journal_mode to WAL w/ synchronous=normal", e);
}
resultStore = new ResultStore(c);
}
}
catch (Exception e)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment