Skip to content

Commit ad939fb

Browse files
committed
Consistent Support Method Name
1 parent 2e0ef3a commit ad939fb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/java/org/mybatis/dynamic/sql/AbstractNoValueCondition.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public <R> R accept(ConditionVisitor<T, R> visitor) {
2525
return visitor.visit(this);
2626
}
2727

28-
protected <S> S filter(BooleanSupplier booleanSupplier, Supplier<S> empty, S self) {
28+
protected <S> S filterSupport(BooleanSupplier booleanSupplier, Supplier<S> empty, S self) {
2929
if (shouldRender()) {
3030
return booleanSupplier.getAsBoolean() ? self : empty.get();
3131
} else {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ public <S> IsNotNull<S> when(BooleanSupplier booleanSupplier) {
6969
public <S> IsNotNull<S> filter(BooleanSupplier booleanSupplier) {
7070
@SuppressWarnings("unchecked")
7171
IsNotNull<S> self = (IsNotNull<S>) this;
72-
return filter(booleanSupplier, IsNotNull::empty, self);
72+
return filterSupport(booleanSupplier, IsNotNull::empty, self);
7373
}
7474
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ public <S> IsNull<S> when(BooleanSupplier booleanSupplier) {
6969
public <S> IsNull<S> filter(BooleanSupplier booleanSupplier) {
7070
@SuppressWarnings("unchecked")
7171
IsNull<S> self = (IsNull<S>) this;
72-
return filter(booleanSupplier, IsNull::empty, self);
72+
return filterSupport(booleanSupplier, IsNull::empty, self);
7373
}
7474
}

0 commit comments

Comments
 (0)