Skip to content

Commit 3a7b7ea

Browse files
committed
Checkstyle Updates
1 parent f6d0e25 commit 3a7b7ea

File tree

4 files changed

+33
-34
lines changed

4 files changed

+33
-34
lines changed

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@
7979
* method and cast the result properly. We provide a {@link SqlColumn#cast(SqlColumn)} method to aid with this
8080
* process. For example, overriding the {@code descending} method could look like this:
8181
*
82-
* <p>
8382
* <pre>
8483
* {@code
8584
* @Override
@@ -237,8 +236,8 @@ public Optional<RenderingStrategy> renderingStrategy() {
237236
* and method chaining would not work. This is a workaround for Java's lack of reification.
238237
*
239238
* @param typeHandler the type handler to set
240-
* @return a new column instance with the specified type handler
241239
* @param <S> the type of the new column (will be the same as T)
240+
* @return a new column instance with the specified type handler
242241
*/
243242
public <S> SqlColumn<S> withTypeHandler(String typeHandler) {
244243
return cast(copyBuilder().withTypeHandler(typeHandler).build());
@@ -253,8 +252,8 @@ public <S> SqlColumn<S> withTypeHandler(String typeHandler) {
253252
* and method chaining would not work. This is a workaround for Java's lack of reification.
254253
*
255254
* @param renderingStrategy the rendering strategy to set
256-
* @return a new column instance with the specified type handler
257255
* @param <S> the type of the new column (will be the same as T)
256+
* @return a new column instance with the specified type handler
258257
*/
259258
public <S> SqlColumn<S> withRenderingStrategy(RenderingStrategy renderingStrategy) {
260259
return cast(copyBuilder().withRenderingStrategy(renderingStrategy).build());
@@ -271,8 +270,8 @@ public <S> SqlColumn<S> withRenderingStrategy(RenderingStrategy renderingStrateg
271270
* and method chaining would not work. This is a workaround for Java's lack of reification.
272271
*
273272
* @param parameterTypeConverter the parameter type converter to set
274-
* @return a new column instance with the specified type handler
275273
* @param <S> the type of the new column (will be the same as T)
274+
* @return a new column instance with the specified type handler
276275
*/
277276
@SuppressWarnings("unchecked")
278277
public <S> SqlColumn<S> withParameterTypeConverter(ParameterTypeConverter<S, ?> parameterTypeConverter) {
@@ -292,8 +291,8 @@ public <S> SqlColumn<S> withParameterTypeConverter(ParameterTypeConverter<S, ?>
292291
* and method chaining would not work. This is a workaround for Java's lack of reification.
293292
*
294293
* @param javaType the Java type to set
295-
* @return a new column instance with the specified type handler
296294
* @param <S> the type of the new column (will be the same as T)
295+
* @return a new column instance with the specified type handler
297296
*/
298297
@SuppressWarnings("unchecked")
299298
public <S> SqlColumn<S> withJavaType(Class<S> javaType) {
@@ -312,8 +311,8 @@ public <S> SqlColumn<S> withJavaType(Class<S> javaType) {
312311
* and method chaining would not work. This is a workaround for Java's lack of reification.
313312
*
314313
* @param javaProperty the Java property to set
315-
* @return a new column instance with the specified type handler
316314
* @param <S> the type of the new column (will be the same as T)
315+
* @return a new column instance with the specified type handler
317316
*/
318317
public <S> SqlColumn<S> withJavaProperty(String javaProperty) {
319318
return cast(copyBuilder().withJavaProperty(javaProperty).build());
@@ -366,7 +365,7 @@ public static <T> SqlColumn<T> of(String name, SqlTable table, JDBCType jdbcType
366365
.build();
367366
}
368367

369-
public static abstract class AbstractBuilder<T, C extends SqlColumn<T>, B extends AbstractBuilder<T, C, B>> {
368+
public abstract static class AbstractBuilder<T, C extends SqlColumn<T>, B extends AbstractBuilder<T, C, B>> {
370369
protected @Nullable String name;
371370
protected @Nullable SqlTable table;
372371
protected @Nullable JDBCType jdbcType;

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ public class IsGreaterThanOrEqualToWhenPresent<T> extends AbstractSingleValueCon
2626
implements AbstractSingleValueCondition.Filterable<T>, AbstractSingleValueCondition.Mappable<T> {
2727
private static final IsGreaterThanOrEqualToWhenPresent<?> EMPTY =
2828
new IsGreaterThanOrEqualToWhenPresent<Object>(-1) {
29-
@Override
30-
public Object value() {
31-
throw new NoSuchElementException("No value present"); //$NON-NLS-1$
32-
}
29+
@Override
30+
public Object value() {
31+
throw new NoSuchElementException("No value present"); //$NON-NLS-1$
32+
}
3333

34-
@Override
35-
public boolean isEmpty() {
36-
return true;
37-
}
38-
};
34+
@Override
35+
public boolean isEmpty() {
36+
return true;
37+
}
38+
};
3939

4040
public static <T> IsGreaterThanOrEqualToWhenPresent<T> empty() {
4141
@SuppressWarnings("unchecked")

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ public class IsLikeCaseInsensitiveWhenPresent<T> extends AbstractSingleValueCond
2828
AbstractSingleValueCondition.Mappable<T> {
2929
private static final IsLikeCaseInsensitiveWhenPresent<?> EMPTY =
3030
new IsLikeCaseInsensitiveWhenPresent<>("") { //$NON-NLS-1$
31-
@Override
32-
public String value() {
33-
throw new NoSuchElementException("No value present"); //$NON-NLS-1$
34-
}
31+
@Override
32+
public String value() {
33+
throw new NoSuchElementException("No value present"); //$NON-NLS-1$
34+
}
3535

36-
@Override
37-
public boolean isEmpty() {
38-
return true;
39-
}
40-
};
36+
@Override
37+
public boolean isEmpty() {
38+
return true;
39+
}
40+
};
4141

4242
public static <T> IsLikeCaseInsensitiveWhenPresent<T> empty() {
4343
@SuppressWarnings("unchecked")

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ public class IsNotLikeCaseInsensitiveWhenPresent<T> extends AbstractSingleValueC
2828
AbstractSingleValueCondition.Mappable<T> {
2929
private static final IsNotLikeCaseInsensitiveWhenPresent<?> EMPTY =
3030
new IsNotLikeCaseInsensitiveWhenPresent<>("") { //$NON-NLS-1$
31-
@Override
32-
public String value() {
33-
throw new NoSuchElementException("No value present"); //$NON-NLS-1$
34-
}
31+
@Override
32+
public String value() {
33+
throw new NoSuchElementException("No value present"); //$NON-NLS-1$
34+
}
3535

36-
@Override
37-
public boolean isEmpty() {
38-
return true;
39-
}
40-
};
36+
@Override
37+
public boolean isEmpty() {
38+
return true;
39+
}
40+
};
4141

4242
public static <T> IsNotLikeCaseInsensitiveWhenPresent<T> empty() {
4343
@SuppressWarnings("unchecked")

0 commit comments

Comments
 (0)