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

@@ -42,7 +42,7 @@ public class SimpleJdbcRepositoryUnitTests {
@Test // DATAJDBC-252
public void saveReturnsEntityProducedByOperations() {
SimpleJdbcRepository<Sample, Object> repository = new SimpleJdbcRepository<>(operations, entity,converter);
SimpleJdbcRepository<Sample, Object> repository = new SimpleJdbcRepository<>(operations, entity, converter);
Sample expected = new Sample();
doReturn(expected).when(operations).save(any());

View File

@@ -53,7 +53,7 @@ public class OracleDialect extends org.springframework.data.relational.core.dial
}
}
if (builder.length() == 0) {
if (builder.isEmpty()) {
return "";
}

View File

@@ -50,7 +50,7 @@ public class SqlServerDialect extends org.springframework.data.relational.core.d
}
}
if (builder.length() == 0) {
if (builder.isEmpty()) {
return "";
}

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");