mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Make codes looks better
Former-commit-id: 1680b2fe63e8a19e2d77bc49a8ed1ebaf7b2a1a7 [formerly 755b2f475ad70c9150452ff371757b997fa22274] Former-commit-id: 1e5eee6f2aadbaaf80657260f5742db122c44010
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user