Skip to content

Commit 8b64511

Browse files
committed
Checkstyle and PMD Updates
1 parent e83b6f9 commit 8b64511

File tree

6 files changed

+13
-9
lines changed

6 files changed

+13
-9
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public interface SortSpecification {
4040
*
4141
* @return the order by phrase
4242
* @deprecated Please replace this method by overriding the more general "renderForOrderBy" method. Target for
43-
* removal in release 2.1
43+
* removal in release 2.1
4444
*/
4545
@Deprecated(since = "2.0", forRemoval = true)
4646
default String orderByName() {
@@ -52,7 +52,7 @@ default String orderByName() {
5252
*
5353
* @return true if the SortSpecification should render as descending
5454
* @deprecated Please replace this method by overriding the more general "renderForOrderBy" method. Target for
55-
* removal in release 2.1
55+
* removal in release 2.1
5656
*/
5757
@Deprecated(since = "2.0", forRemoval = true)
5858
default boolean isDescending() {

src/main/java/org/mybatis/dynamic/sql/insert/BatchInsertDSL.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public BatchInsertModel<T> build() {
5959

6060
@SafeVarargs
6161
public static <T> IntoGatherer<T> insert(T... records) {
62-
return BatchInsertDSL.insert(Arrays.asList(records));
62+
return insert(Arrays.asList(records));
6363
}
6464

6565
public static <T> IntoGatherer<T> insert(Collection<T> records) {

src/main/java/org/mybatis/dynamic/sql/insert/MultiRowInsertDSL.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public MultiRowInsertModel<T> build() {
5858

5959
@SafeVarargs
6060
public static <T> IntoGatherer<T> insert(T... records) {
61-
return MultiRowInsertDSL.insert(Arrays.asList(records));
61+
return insert(Arrays.asList(records));
6262
}
6363

6464
public static <T> IntoGatherer<T> insert(Collection<T> records) {

src/main/java/org/mybatis/dynamic/sql/util/FragmentAndParameters.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public Map<String, Object> parameters() {
4646
* @return a new instance with the same parameters and a transformed fragment
4747
*/
4848
public FragmentAndParameters mapFragment(UnaryOperator<String> mapper) {
49-
return FragmentAndParameters.withFragment(mapper.apply(fragment))
49+
return withFragment(mapper.apply(fragment))
5050
.withParameters(parameters)
5151
.build();
5252
}

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727

2828
public class IsInCaseInsensitiveWhenPresent extends AbstractListValueCondition<String>
2929
implements CaseInsensitiveVisitableCondition {
30-
private static final IsInCaseInsensitiveWhenPresent EMPTY = new IsInCaseInsensitiveWhenPresent(Collections.emptyList());
30+
private static final IsInCaseInsensitiveWhenPresent EMPTY =
31+
new IsInCaseInsensitiveWhenPresent(Collections.emptyList());
3132

3233
public static IsInCaseInsensitiveWhenPresent empty() {
3334
return EMPTY;
@@ -44,7 +45,8 @@ public String operator() {
4445

4546
@Override
4647
public IsInCaseInsensitiveWhenPresent filter(Predicate<? super String> predicate) {
47-
return filterSupport(predicate, IsInCaseInsensitiveWhenPresent::new, this, IsInCaseInsensitiveWhenPresent::empty);
48+
return filterSupport(predicate, IsInCaseInsensitiveWhenPresent::new, this,
49+
IsInCaseInsensitiveWhenPresent::empty);
4850
}
4951

5052
/**

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727

2828
public class IsNotInCaseInsensitiveWhenPresent extends AbstractListValueCondition<String>
2929
implements CaseInsensitiveVisitableCondition {
30-
private static final IsNotInCaseInsensitiveWhenPresent EMPTY = new IsNotInCaseInsensitiveWhenPresent(Collections.emptyList());
30+
private static final IsNotInCaseInsensitiveWhenPresent EMPTY =
31+
new IsNotInCaseInsensitiveWhenPresent(Collections.emptyList());
3132

3233
public static IsNotInCaseInsensitiveWhenPresent empty() {
3334
return EMPTY;
@@ -44,7 +45,8 @@ public String operator() {
4445

4546
@Override
4647
public IsNotInCaseInsensitiveWhenPresent filter(Predicate<? super String> predicate) {
47-
return filterSupport(predicate, IsNotInCaseInsensitiveWhenPresent::new, this, IsNotInCaseInsensitiveWhenPresent::empty);
48+
return filterSupport(predicate, IsNotInCaseInsensitiveWhenPresent::new,
49+
this, IsNotInCaseInsensitiveWhenPresent::empty);
4850
}
4951

5052
/**

0 commit comments

Comments
 (0)