Cleaned up code

This commit is contained in:
mathias 2021-08-19 22:09:11 +02:00
parent 34c1ec14fa
commit f6d89ee3f2
No known key found for this signature in database
GPG Key ID: 8950DF62139C852A
2 changed files with 3 additions and 3 deletions

View File

@ -71,7 +71,7 @@ public class MySQLConnection {
PreparedStatement ps = con.prepareStatement(query); PreparedStatement ps = con.prepareStatement(query);
for (int i = 0; i < params.length; i++) { for (int i = 0; i < params.length; i++) {
ps.setObject(i+1, params[i]); ps.setObject(i + 1, params[i]);
} }
return ps.executeQuery(); return ps.executeQuery();
@ -120,7 +120,7 @@ public class MySQLConnection {
PreparedStatement ps = con.prepareStatement(query); PreparedStatement ps = con.prepareStatement(query);
for (int i = 0; i < params.length; i++) { for (int i = 0; i < params.length; i++) {
ps.setObject(i+1, params[i]); ps.setObject(i + 1, params[i]);
} }
ps.executeUpdate(); ps.executeUpdate();

View File

@ -14,7 +14,7 @@ public class TableGenerator {
private final String tableName; private final String tableName;
/** /**
* Basic constructor for the TableGenerator * Basic constructor for the {@link TableGenerator}
* *
* @param tableName Name of the table * @param tableName Name of the table
*/ */