Skip to content

Commit 2a47d4e

Browse files
committed
Checkstyle updates
1 parent e4a62e1 commit 2a47d4e

File tree

6 files changed

+43
-14
lines changed

6 files changed

+43
-14
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ public abstract class AbstractListValueCondition<T> implements VisitableConditio
2828
protected final Collection<T> values;
2929

3030
/**
31+
* Callback to execute when the list is empty.
32+
*
3133
* @deprecated in favor of the statement configuration functions
3234
*/
3335
@Deprecated
@@ -38,9 +40,11 @@ protected AbstractListValueCondition(Collection<T> values) {
3840
}
3941

4042
/**
41-
* @deprecated in favor of the statement configuration functions
43+
* Construct a new condition with a callback.
44+
*
4245
* @param values values
4346
* @param emptyCallback empty callback
47+
* @deprecated in favor of the statement configuration functions
4448
*/
4549
@Deprecated
4650
protected AbstractListValueCondition(Collection<T> values, Callback emptyCallback) {
@@ -110,9 +114,9 @@ protected <R, S extends AbstractListValueCondition<R>> S mapSupport(Function<? s
110114
/**
111115
* Specifies a callback function to be called if the value list is empty when rendered.
112116
*
113-
* @deprecated in favor of the statement configuration functions
114117
* @param callback a callback function - typically throws an exception to block the statement from executing
115118
* @return this condition
119+
* @deprecated in favor of the statement configuration functions
116120
*/
117121
@Deprecated
118122
public abstract AbstractListValueCondition<T> withListEmptyCallback(Callback callback);

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
import java.util.function.Function;
1919

2020
/**
21+
* Provides a callback function for empty "in" conditions.
22+
*
2123
* @deprecated in favor of the new statement configuration functionality
2224
*/
2325
@Deprecated

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ public static <T> IsIn<T> empty() {
3939
}
4040

4141
/**
42-
* @deprecated in favor of the statement configuration functions
42+
* Build an empty condition.
43+
*
4344
* @return a new empty condition
45+
* @deprecated in favor of the statement configuration functions
4446
*/
4547
@Deprecated
4648
private <S> IsIn<S> emptyWithCallBack() {
@@ -52,9 +54,11 @@ protected IsIn(Collection<T> values) {
5254
}
5355

5456
/**
55-
* @deprecated in favor of the statement configuration functions
57+
* Build a new condition with a callback.
58+
*
5659
* @param values values
5760
* @param emptyCallback empty callback
61+
* @deprecated in favor of the statement configuration functions
5862
*/
5963
@Deprecated
6064
protected IsIn(Collection<T> values, Callback emptyCallback) {
@@ -68,9 +72,11 @@ public String renderCondition(String columnName, Stream<String> placeholders) {
6872
}
6973

7074
/**
71-
* @deprecated in favor of the statement configuration functions
75+
* Build a new condition with a callback.
76+
*
7277
* @param callback a callback function - typically throws an exception to block the statement from executing
7378
* @return this condition
79+
* @deprecated in favor of the statement configuration functions
7480
*/
7581
@Deprecated
7682
@Override

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ public static IsInCaseInsensitive empty() {
3535
}
3636

3737
/**
38-
* @deprecated in favor of the statement configuration functions
38+
* Build an empty condition.
39+
*
3940
* @return a new empty condition
41+
* @deprecated in favor of the statement configuration functions
4042
*/
4143
@Deprecated
4244
private IsInCaseInsensitive emptyWithCallback() {
@@ -48,9 +50,11 @@ protected IsInCaseInsensitive(Collection<String> values) {
4850
}
4951

5052
/**
51-
* @deprecated in favor of the statement configuration functions
53+
* Build a new instance with a callback.
54+
*
5255
* @param values values
5356
* @param emptyCallback empty callback
57+
* @deprecated in favor of the statement configuration functions
5458
*/
5559
@Deprecated
5660
protected IsInCaseInsensitive(Collection<String> values, Callback emptyCallback) {
@@ -65,9 +69,11 @@ public String renderCondition(String columnName, Stream<String> placeholders) {
6569
}
6670

6771
/**
68-
* @deprecated in favor of the statement configuration functions
72+
* Build a new instance with a callback.
73+
*
6974
* @param callback a callback function - typically throws an exception to block the statement from executing
7075
* @return this condition
76+
* @deprecated in favor of the statement configuration functions
7177
*/
7278
@Deprecated
7379
@Override

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ public static <T> IsNotIn<T> empty() {
3939
}
4040

4141
/**
42-
* @deprecated in favor of the statement configuration functions
42+
* Build an empty condition.
43+
*
4344
* @return a new empty condition
45+
* @deprecated in favor of the statement configuration functions
4446
*/
4547
@Deprecated
4648
private <S> IsNotIn<S> emptyWithCallback() {
@@ -52,9 +54,11 @@ protected IsNotIn(Collection<T> values) {
5254
}
5355

5456
/**
55-
* @deprecated in favor of the statement configuration functions
57+
* Build a new condition with a callback.
58+
*
5659
* @param values values
5760
* @param emptyCallback empty callback
61+
* @deprecated in favor of the statement configuration functions
5862
*/
5963
@Deprecated
6064
protected IsNotIn(Collection<T> values, Callback emptyCallback) {
@@ -69,10 +73,11 @@ public String renderCondition(String columnName, Stream<String> placeholders) {
6973
}
7074

7175
/**
76+
* Build a new instance with a callback.
7277
*
73-
* @deprecated in favor of the statement configuration functions
7478
* @param callback a callback function - typically throws an exception to block the statement from executing
7579
* @return this condition
80+
* @deprecated in favor of the statement configuration functions
7681
*/
7782
@Deprecated
7883
@Override

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ public static IsNotInCaseInsensitive empty() {
3535
}
3636

3737
/**
38-
* @deprecated in favor of the statement configuration functions
38+
* Build an empty condition.
39+
*
3940
* @return a new empty condition
41+
* @deprecated in favor of the statement configuration functions
4042
*/
4143
@Deprecated
4244
private IsNotInCaseInsensitive emptyWithCallback() {
@@ -48,9 +50,11 @@ protected IsNotInCaseInsensitive(Collection<String> values) {
4850
}
4951

5052
/**
51-
* @deprecated in favor of the statement configuration functions
53+
* Build a new instance with a callback.
54+
*
5255
* @param values values
5356
* @param emptyCallback empty callback
57+
* @deprecated in favor of the statement configuration functions
5458
*/
5559
@Deprecated
5660
protected IsNotInCaseInsensitive(Collection<String> values, Callback emptyCallback) {
@@ -65,9 +69,11 @@ public String renderCondition(String columnName, Stream<String> placeholders) {
6569
}
6670

6771
/**
68-
* @deprecated in favor of the statement configuration functions
72+
* Build a new instance with a callback.
73+
*
6974
* @param callback a callback function - typically throws an exception to block the statement from executing
7075
* @return this condition
76+
* @deprecated in favor of the statement configuration functions
7177
*/
7278
@Deprecated
7379
@Override

0 commit comments

Comments
 (0)