committed by
Jens Schauder
parent
5de52af824
commit
9277792d87
@@ -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());
|
||||
|
||||
@@ -53,7 +53,7 @@ public class OracleDialect extends org.springframework.data.relational.core.dial
|
||||
}
|
||||
}
|
||||
|
||||
if (builder.length() == 0) {
|
||||
if (builder.isEmpty()) {
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ public class SqlServerDialect extends org.springframework.data.relational.core.d
|
||||
}
|
||||
}
|
||||
|
||||
if (builder.length() == 0) {
|
||||
if (builder.isEmpty()) {
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user