Skip to content

Commit 588814b

Browse files
committed
Trim whitespace in a ton of files
1 parent 7f891b5 commit 588814b

File tree

265 files changed

+3387
-3387
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

265 files changed

+3387
-3387
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
public abstract class AbstractColumnComparisonCondition<T> implements VisitableCondition<T> {
2121

2222
protected final BasicColumn column;
23-
23+
2424
protected AbstractColumnComparisonCondition(BasicColumn column) {
2525
this.column = column;
2626
}
@@ -29,10 +29,10 @@ protected AbstractColumnComparisonCondition(BasicColumn column) {
2929
public <R> R accept(ConditionVisitor<T,R> visitor) {
3030
return visitor.visit(this);
3131
}
32-
32+
3333
public String renderCondition(String columnName, TableAliasCalculator tableAliasCalculator) {
3434
return renderCondition(columnName, column.renderWithTableAlias(tableAliasCalculator));
3535
}
36-
36+
3737
protected abstract String renderCondition(String leftColumn, String rightColumn);
3838
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ protected AbstractListValueCondition(Collection<T> values, UnaryOperator<Stream<
4343
.collect(Collectors.toList());
4444
this.emptyCallback = Objects.requireNonNull(emptyCallback);
4545
}
46-
46+
4747
public final <R> Stream<R> mapValues(Function<T, R> mapper) {
4848
return values.stream().map(mapper);
4949
}
50-
50+
5151
@Override
5252
public boolean shouldRender() {
5353
if (values.isEmpty()) {

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,24 @@
2121
public abstract class AbstractNoValueCondition<T> implements VisitableCondition<T> {
2222

2323
private final BooleanSupplier booleanSupplier;
24-
24+
2525
protected AbstractNoValueCondition() {
2626
booleanSupplier = () -> true;
2727
}
28-
28+
2929
protected AbstractNoValueCondition(BooleanSupplier booleanSupplier) {
3030
this.booleanSupplier = Objects.requireNonNull(booleanSupplier);
3131
}
32-
32+
3333
@Override
3434
public boolean shouldRender() {
3535
return booleanSupplier.getAsBoolean();
3636
}
37-
37+
3838
@Override
3939
public <R> R accept(ConditionVisitor<T,R> visitor) {
4040
return visitor.visit(this);
4141
}
42-
42+
4343
public abstract String renderCondition(String columnName);
4444
}

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,30 +22,30 @@
2222
public abstract class AbstractSingleValueCondition<T> implements VisitableCondition<T> {
2323
protected final Supplier<T> valueSupplier;
2424
private final Predicate<T> predicate;
25-
25+
2626
protected AbstractSingleValueCondition(Supplier<T> valueSupplier) {
2727
this.valueSupplier = Objects.requireNonNull(valueSupplier);
2828
predicate = v -> true;
2929
}
30-
30+
3131
protected AbstractSingleValueCondition(Supplier<T> valueSupplier, Predicate<T> predicate) {
3232
this.valueSupplier = Objects.requireNonNull(valueSupplier);
3333
this.predicate = Objects.requireNonNull(predicate);
3434
}
35-
35+
3636
public T value() {
3737
return valueSupplier.get();
3838
}
39-
39+
4040
@Override
4141
public boolean shouldRender() {
4242
return predicate.test(value());
4343
}
44-
44+
4545
@Override
4646
public <R> R accept(ConditionVisitor<T,R> visitor) {
4747
return visitor.visit(this);
4848
}
49-
49+
5050
public abstract String renderCondition(String columnName, String placeholder);
5151
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020

2121
public abstract class AbstractSubselectCondition<T> implements VisitableCondition<T> {
2222
private final SelectModel selectModel;
23-
23+
2424
protected AbstractSubselectCondition(Buildable<SelectModel> selectModelBuilder) {
2525
this.selectModel = selectModelBuilder.build();
2626
}
27-
27+
2828
public SelectModel selectModel() {
2929
return selectModel;
3030
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public abstract class AbstractTwoValueCondition<T> implements VisitableCondition
2323
protected final Supplier<T> valueSupplier1;
2424
protected final Supplier<T> valueSupplier2;
2525
private final BiPredicate<T, T> predicate;
26-
26+
2727
protected AbstractTwoValueCondition(Supplier<T> valueSupplier1, Supplier<T> valueSupplier2) {
2828
this.valueSupplier1 = Objects.requireNonNull(valueSupplier1);
2929
this.valueSupplier2 = Objects.requireNonNull(valueSupplier2);
@@ -44,12 +44,12 @@ public T value1() {
4444
public T value2() {
4545
return valueSupplier2.get();
4646
}
47-
47+
4848
@Override
4949
public boolean shouldRender() {
5050
return predicate.test(value1(), value2());
5151
}
52-
52+
5353
@Override
5454
public <R> R accept(ConditionVisitor<T,R> visitor) {
5555
return visitor.visit(this);

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,54 +23,54 @@
2323
* Describes attributes of columns that are necessary for rendering if the column is not expected to
2424
* be bound as a JDBC parameter. Columns in select lists, join expressions, and group by expressions
2525
* are typically not bound.
26-
*
26+
*
2727
* @author Jeff Butler
2828
*
2929
*/
3030
public interface BasicColumn {
3131

3232
/**
3333
* Returns the columns alias if one has been specified.
34-
*
34+
*
3535
* @return the column alias
3636
*/
3737
Optional<String> alias();
38-
38+
3939
/**
4040
* Returns a new instance of a BasicColumn with the alias set.
41-
*
41+
*
4242
* @param alias the column alias to set
4343
* @return new instance with alias set
4444
*/
4545
BasicColumn as(String alias);
46-
46+
4747
/**
4848
* Returns the name of the item aliased with a table name if appropriate.
4949
* For example, "a.foo". This is appropriate for where clauses and order by clauses.
50-
*
50+
*
5151
* @param tableAliasCalculator the table alias calculator for the current renderer
5252
* @return the item name with the table alias applied
5353
*/
5454
String renderWithTableAlias(TableAliasCalculator tableAliasCalculator);
55-
55+
5656
/**
5757
* Returns the name of the item aliased with a table name and column alias if appropriate.
5858
* For example, "a.foo as bar". This is appropriate for select list clauses.
59-
*
59+
*
6060
* @param tableAliasCalculator the table alias calculator for the current renderer
6161
* @return the item name with the table and column aliases applied
6262
*/
6363
default String renderWithTableAndColumnAlias(TableAliasCalculator tableAliasCalculator) {
6464
String nameAndTableAlias = renderWithTableAlias(tableAliasCalculator);
65-
65+
6666
return alias().map(a -> nameAndTableAlias + " as " + a) //$NON-NLS-1$
6767
.orElse(nameAndTableAlias);
6868
}
69-
69+
7070
/**
7171
* Utility method to make it easier to build column lists for methods that require an
7272
* array rather than the varargs method.
73-
*
73+
*
7474
* @param columns list of BasicColumn
7575
* @return an array of BasicColumn
7676
*/

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,31 +23,31 @@
2323
/**
2424
* Describes additional attributes of columns that are necessary for binding the column as a JDBC parameter.
2525
* Columns in where clauses are typically bound.
26-
*
26+
*
2727
* @author Jeff Butler
2828
*
2929
* @param <T> - the Java type that corresponds to this column
3030
*/
3131
public interface BindableColumn<T> extends BasicColumn {
3232

3333
/**
34-
* Override the base method definition to make it more specific to this interface.
34+
* Override the base method definition to make it more specific to this interface.
3535
*/
3636
@Override
3737
BindableColumn<T> as(String alias);
3838

3939
default Optional<JDBCType> jdbcType() {
4040
return Optional.empty();
4141
}
42-
42+
4343
default Optional<String> typeHandler() {
4444
return Optional.empty();
4545
}
46-
46+
4747
default Optional<RenderingStrategy> renderingStrategy() {
4848
return Optional.empty();
4949
}
50-
50+
5151
default Object convertParameterType(T value) {
5252
return value;
5353
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class Constant<T> implements BindableColumn<T> {
2424

2525
private String alias;
2626
private final String value;
27-
27+
2828
private Constant(String value) {
2929
this.value = Objects.requireNonNull(value);
3030
}
@@ -45,7 +45,7 @@ public Constant<T> as(String alias) {
4545
copy.alias = alias;
4646
return copy;
4747
}
48-
48+
4949
public static <T> Constant<T> of(String value) {
5050
return new Constant<>(value);
5151
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
* during statement rendering and before the parameter is placed into the parameter map. This can be used
2121
* to somewhat mimic the function of a MyBatis type handler for runtimes such as Spring that don't have
2222
* a corresponding concept.
23-
*
23+
*
2424
* <p>Since Spring does not have the concept of type handlers, it is a best practice to only use
2525
* Java data types that have a clear correlation to SQL data types (for example Java String correlates
2626
* automatically with VARCHAR). Using a parameter type converter will allow you to use data types in your
2727
* model classes that would otherwise be difficult to use with Spring.
2828
*
2929
* <p>A parameter type converter is associated with a SqlColumn.
30-
*
30+
*
3131
* <p>This interface is based on Spring's general Converter interface and is intentionally compatible with it.
3232
* Existing converters may be reused if they are marked with this additional interface.
3333
*
@@ -40,7 +40,7 @@
4040
* <li>Parameters in an update statement (for the Value and ValueWhenPresent mappings)</li>
4141
* <li>Parameters in a where clause in any statement (for conditions that accept a value or multiple values)</li>
4242
* </ul>
43-
*
43+
*
4444
* @param <S> Source Type
4545
* @param <T> Target Type
4646
*

0 commit comments

Comments
 (0)