Skip to content

Commit 4058dea

Browse files
committed
made it final
1 parent d1aff14 commit 4058dea

File tree

1 file changed

+3
-3
lines changed
  • Database/src/main/java/org/broken/arrow/database/library/core

1 file changed

+3
-3
lines changed

Database/src/main/java/org/broken/arrow/database/library/core/Database.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ protected List<String> updateTableColumnsInDb(final Connection connection, final
498498

499499
try {
500500
final List<String> column = new ArrayList<>();
501-
String queryAllColumns = "SELECT * FROM " + this.getQuote() + tableName + this.getQuote() + ";";
501+
final String queryAllColumns = "SELECT * FROM " + this.getQuote() + tableName + this.getQuote() + ";";
502502
statement = connection.prepareStatement(queryAllColumns);
503503
rs = statement.executeQuery();
504504
final ResultSetMetaData rsmd = rs.getMetaData();
@@ -534,7 +534,7 @@ protected void dropColumn(final List<String> existingColumns, final String table
534534
PreparedStatement createTable = null;
535535
PreparedStatement removeOldTable = null;
536536
try { // Rename the old table, so we can remove old name and rename columns.
537-
String alterTableQuery = "ALTER TABLE " + tableName + " RENAME TO " + tableName + "_old;";
537+
final String alterTableQuery = "ALTER TABLE " + tableName + " RENAME TO " + tableName + "_old;";
538538
alterTable = connection.prepareStatement(alterTableQuery);
539539
// Creating the table on its new format (no redundant columns)
540540
createTable = connection.prepareStatement("CREATE TABLE IF NOT EXISTS " + tableName + " (" + columnsSeparated + ");");
@@ -703,7 +703,7 @@ public Connection attemptToConnect() {
703703

704704
private void checkIfTableExist(@Nonnull final Connection connection, String tableName, String columName) {
705705

706-
String checkTableQuery = "SELECT * FROM " + this.getQuote() + tableName + this.getQuote() + " WHERE " + this.getQuote() + columName + this.getQuote() + " = ?";
706+
final String checkTableQuery = "SELECT * FROM " + this.getQuote() + tableName + this.getQuote() + " WHERE " + this.getQuote() + columName + this.getQuote() + " = ?";
707707
try (final PreparedStatement preparedStatement = connection.prepareStatement(checkTableQuery)) {
708708
preparedStatement.setString(1, "");
709709
final ResultSet resultSet = preparedStatement.executeQuery();

0 commit comments

Comments
 (0)