Skip to content

Commit ea8354e

Browse files
committed
Checkstyle
1 parent e15d359 commit ea8354e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/java/org/mybatis/dynamic/sql/where/condition/IsBetween.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ private WhenPresentBuilder(@Nullable T value1) {
125125
@Override
126126
protected IsBetween<T> build(@Nullable T value2) {
127127
if (value1 == null || value2 == null) {
128-
return IsBetween.empty();
128+
return empty();
129129
} else {
130130
return new IsBetween<>(value1, value2);
131131
}

src/main/java/org/mybatis/dynamic/sql/where/condition/IsNotBetween.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ private WhenPresentBuilder(@Nullable T value1) {
128128
@Override
129129
protected IsNotBetween<T> build(@Nullable T value2) {
130130
if (value1 == null || value2 == null) {
131-
return IsNotBetween.empty();
131+
return empty();
132132
} else {
133133
return new IsNotBetween<>(value1, value2);
134134
}

src/test/java/examples/animal/data/OptionalConditionsWithPredicatesAnimalDataTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ void testSelectByNull() {
108108
assertAll(
109109
() -> assertThat(selectStatement.getSelectStatement()).isEqualTo("select id, animal_name, body_weight, brain_weight from AnimalData where id > #{parameters.p1,jdbcType=INTEGER} order by id"),
110110
() -> assertThat(selectStatement.getParameters()).containsEntry("p1", null),
111-
() -> assertThat(animals).hasSize(0)
111+
() -> assertThat(animals).isEmpty()
112112
);
113113
}
114114
}

0 commit comments

Comments
 (0)