Polishing.

Original pull request #1894
This commit is contained in:
Tran Ngoc Nhan
2024-09-21 10:44:46 +07:00
committed by Jens Schauder
parent 5de52af824
commit 9277792d87
5 changed files with 5 additions and 5 deletions

View File

@@ -196,7 +196,7 @@ public abstract class AbstractDialect implements Dialect {
@Override
public CharSequence apply(CharSequence charSequence) {
if (charSequence.length() == 0) {
if (charSequence.isEmpty()) {
return charSequence;
}

View File

@@ -47,7 +47,7 @@ class InVisitor extends TypedSingleConditionRenderSupport<In> {
part.append(", ");
}
if (part.length() == 0) {
if (part.isEmpty()) {
part.append(renderedPart);
if (notIn) {
part.append(" NOT");