Skip to content

Commit

Permalink
Polishing.
Browse files Browse the repository at this point in the history
Original pull request #1894
  • Loading branch information
ngocnhan-tran1996 authored and schauder committed Sep 23, 2024
1 parent 56260ed commit 9a7f209
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ private static String filterBindMarker(CharSequence input) {
}
}

if (builder.length() == 0) {
if (builder.isEmpty()) {
return "";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ private static String filterBindMarker(CharSequence input) {
}
}

if (builder.length() == 0) {
if (builder.isEmpty()) {
return "";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ enum PrependWithLeadingWhitespace implements Function<CharSequence, CharSequence
@Override
public CharSequence apply(CharSequence charSequence) {

if (charSequence.length() == 0) {
if (charSequence.isEmpty()) {
return charSequence;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Delegation leaveNested(Visitable segment) {
part.append(", ");
}

if (part.length() == 0) {
if (part.isEmpty()) {
part.append(renderedPart);
if (notIn) {
part.append(" NOT");
Expand Down

0 comments on commit 9a7f209

Please sign in to comment.