Make codes looks better

Former-commit-id: 1680b2fe63e8a19e2d77bc49a8ed1ebaf7b2a1a7 [formerly 755b2f475ad70c9150452ff371757b997fa22274]
Former-commit-id: 1e5eee6f2aadbaaf80657260f5742db122c44010
This commit is contained in:
Ghost_chu committed 2019-06-07 21:46:11 +08:00
1 parent e592fec653
commit dd1ddc6677
1 file changed
+2 -5
@@ -40,10 +40,7 @@ public class SQLiteCore implements DatabaseCore {
Class.forName("org.sqlite.JDBC");
this.connection = DriverManager.getConnection("jdbc:sqlite:" + this.dbFile);
return this.connection;
} catch (ClassNotFoundException e) {
e.printStackTrace();
return null;
} catch (SQLException e) {
} catch (ClassNotFoundException | SQLException e) {
e.printStackTrace();
return null;
}
@@ -74,7 +71,7 @@ public class SQLiteCore implements DatabaseCore {
@Override
public void flush() {
while (queue.isEmpty() == false) {
while (!queue.isEmpty()) {
BufferStatement bs;
synchronized (queue) {
bs = queue.removeFirst();