🛠️ Code cleanup & added many new features #1

Merged
gnmyt merged 121 commits from features/code-cleanup into master 2021-09-02 13:34:00 +00:00
2 changed files with 3 additions and 5 deletions
Showing only changes of commit 387f9d7b35 - Show all commits

View File

@ -65,7 +65,7 @@ public class DataBaseSelection {
* @return this class
*/
public DataBaseSelection from(String tableName) {
this.tableName = connection.getTablePrefix().isEmpty() ? tableName : connection.getTablePrefix() + tableName;
this.tableName = tableName;
return this;
}

View File

@ -76,9 +76,7 @@ public class UpdateManager {
messageBuilder.append((added.get()) ? ", " : "").append(v);
added.set(true);
});
StackTraceElement[] st = Thread.currentThread().getStackTrace();
StackTraceElement stack = st[st.length - 1];
LOG.debug("DEBUG <" + stack.getFileName() + ":" + stack.getLineNumber() + "> Statement: " + messageBuilder);
LOG.debug("Statement: " + messageBuilder);
return this;
}
@ -109,7 +107,7 @@ public class UpdateManager {
* @return this class
*/
public UpdateManager toTable(String tableName) {
this.tableName = connection.getTablePrefix().isEmpty() ? tableName : connection.getTablePrefix() + tableName;
this.tableName = tableName;
return this;
}