Skip to content

Commit 2430e0e

Browse files
committed
Polishing.
Code formatting. See #1073
1 parent 7a31336 commit 2430e0e

File tree

1 file changed

+16
-14
lines changed
  • spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert

1 file changed

+16
-14
lines changed

spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/SqlGenerator.java

+16-14
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
*/
1616
package org.springframework.data.jdbc.core.convert;
1717

18+
import java.util.*;
19+
import java.util.function.Function;
20+
import java.util.regex.Pattern;
21+
import java.util.stream.Collectors;
22+
1823
import org.springframework.data.domain.Pageable;
1924
import org.springframework.data.domain.Sort;
2025
import org.springframework.data.jdbc.repository.support.SimpleJdbcRepository;
@@ -33,11 +38,6 @@
3338
import org.springframework.lang.Nullable;
3439
import org.springframework.util.Assert;
3540

36-
import java.util.*;
37-
import java.util.function.Function;
38-
import java.util.regex.Pattern;
39-
import java.util.stream.Collectors;
40-
4141
/**
4242
* Generates SQL statements to be used by {@link SimpleJdbcRepository}
4343
*
@@ -751,12 +751,14 @@ Column getParentId() {
751751
@Override
752752
public boolean equals(Object o) {
753753

754-
if (this == o) return true;
755-
if (o == null || getClass() != o.getClass()) return false;
754+
if (this == o) {
755+
return true;
756+
}
757+
if (o == null || getClass() != o.getClass()) {
758+
return false;
759+
}
756760
Join join = (Join) o;
757-
return joinTable.equals(join.joinTable) &&
758-
joinColumn.equals(join.joinColumn) &&
759-
parentId.equals(join.parentId);
761+
return joinTable.equals(join.joinTable) && joinColumn.equals(join.joinColumn) && parentId.equals(join.parentId);
760762
}
761763

762764
@Override
@@ -767,10 +769,10 @@ public int hashCode() {
767769
@Override
768770
public String toString() {
769771

770-
return "Join{" +
771-
"joinTable=" + joinTable +
772-
", joinColumn=" + joinColumn +
773-
", parentId=" + parentId +
772+
return "Join{" + //
773+
"joinTable=" + joinTable + //
774+
", joinColumn=" + joinColumn + //
775+
", parentId=" + parentId + //
774776
'}';
775777
}
776778
}

0 commit comments

Comments
 (0)