Refactor warehouse part two.
This commit is contained in:
@@ -171,9 +171,8 @@ public class dbItemHandler extends dbHandlerBase {
|
||||
JSONParser jsonParser = new JSONParser();
|
||||
|
||||
try (Connection connection = DbManager.getConnection();
|
||||
PreparedStatement preparedStatement = connection.prepareStatement("SELECT * FROM `static_item_templates`;")) {
|
||||
|
||||
ResultSet rs = preparedStatement.executeQuery();
|
||||
PreparedStatement preparedStatement = connection.prepareStatement("SELECT * FROM `static_item_templates`;");
|
||||
ResultSet rs = preparedStatement.executeQuery()) {
|
||||
|
||||
while (rs.next()) {
|
||||
int templateID = rs.getInt("id");
|
||||
|
||||
Reference in New Issue
Block a user