Skip to content

Commit 0f1ad9c

Browse files
committed
Checkstyle
1 parent f31473c commit 0f1ad9c

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,8 +439,8 @@ static <T> ColumnAndConditionCriterion<T> on(BindableColumn<T> joinColumn, Visit
439439
* Starting in version 2.0.0, this function is a synonym for {@link SqlBuilder#isEqualTo(BasicColumn)}.
440440
*
441441
* @param column the column
442-
* @return an IsEqualToColumn condition
443442
* @param <T> the column type
443+
* @return an IsEqualToColumn condition
444444
* @deprecated since 2.0.0. Please replace with isEqualTo(column)
445445
*/
446446
@Deprecated(since = "2.0.0", forRemoval = true)
@@ -452,8 +452,8 @@ static <T> IsEqualToColumn<T> equalTo(BindableColumn<T> column) {
452452
* Starting in version 2.0.0, this function is a synonym for {@link SqlBuilder#isEqualTo(Object)}.
453453
*
454454
* @param value the value
455-
* @return an IsEqualTo condition
456455
* @param <T> the column type
456+
* @return an IsEqualTo condition
457457
* @deprecated since 2.0.0. Please replace with isEqualTo(value)
458458
*/
459459
@Deprecated(since = "2.0.0", forRemoval = true)

src/main/java/org/mybatis/dynamic/sql/select/MultiSelectDSL.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public OffsetFirstFinisher<MultiSelectModel> offsetWhenPresent(Long offset) {
7777
@Override
7878
public FetchFirstFinisher<MultiSelectModel> fetchFirstWhenPresent(Long fetchFirstRows) {
7979
this.fetchFirstRows = fetchFirstRows;
80-
return () -> MultiSelectDSL.this;
80+
return () -> this;
8181
}
8282

8383
@NotNull

src/main/java/org/mybatis/dynamic/sql/select/QueryExpressionDSL.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,8 @@ public <T> JoinSpecificationFinisher on(BindableColumn<T> joinColumn, VisitableC
359359

360360
public class JoinSpecificationFinisher
361361
extends AbstractBooleanExpressionDSL<JoinSpecificationFinisher>
362-
implements AbstractWhereStarter<QueryExpressionWhereBuilder, JoinSpecificationFinisher>, Buildable<R>, PagingDSL<R> {
362+
implements AbstractWhereStarter<QueryExpressionWhereBuilder, JoinSpecificationFinisher>, Buildable<R>,
363+
PagingDSL<R> {
363364

364365
private final TableExpression table;
365366
private final JoinType joinType;

src/main/java/org/mybatis/dynamic/sql/select/SelectDSL.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public OffsetFirstFinisher<R> offsetWhenPresent(Long offset) {
119119

120120
public FetchFirstFinisher<R> fetchFirstWhenPresent(Long fetchFirstRows) {
121121
this.fetchFirstRows = fetchFirstRows;
122-
return () -> SelectDSL.this;
122+
return () -> this;
123123
}
124124

125125
@Override

src/site/markdown/docs/migratingV1toV2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The changes in the Java DSL are mostly internal and should not impact most users
1111
deprecated in favor of `isEqualTo`, but all other changes should be hidden.
1212

1313
Like the Java DSL, the V2 Kotlin DSL offers a fully flexible join specification and allows for much more flexible join
14-
specifications. The changes in the Kotlin DSL allow a more natural expressions of a join specification. The main
14+
specifications. The changes in the Kotlin DSL allow a more natural expressions of a join specification. The main
1515
difference is that the "on" keyword should be moved outside the join specification lambda (it is now an infix function).
1616
Inside the lambda, the conditions should be rewritten to match the syntax of a where clause.
1717

0 commit comments

Comments
 (0)