Use parenthesis with single-arg lambdas
Use regular expression search/replace to ensure all single-arg lambdas have parenthesis. This aligns with the style used in Spring Boot and ensure that single-arg and multi-arg lambdas are consistent. Issue gh-8945
This commit is contained in:
@@ -231,7 +231,7 @@ public class BasicLookupStrategy implements LookupStrategy {
|
||||
|
||||
String sql = computeRepeatingSql(this.lookupPrimaryKeysWhereClause, findNow.size());
|
||||
|
||||
Set<Long> parentsToLookup = this.jdbcTemplate.query(sql, ps -> {
|
||||
Set<Long> parentsToLookup = this.jdbcTemplate.query(sql, (ps) -> {
|
||||
int i = 0;
|
||||
|
||||
for (Long toFind : findNow) {
|
||||
@@ -358,7 +358,7 @@ public class BasicLookupStrategy implements LookupStrategy {
|
||||
// (including markers to each parent in the hierarchy)
|
||||
String sql = computeRepeatingSql(this.lookupObjectIdentitiesWhereClause, objectIdentities.size());
|
||||
|
||||
Set<Long> parentsToLookup = this.jdbcTemplate.query(sql, ps -> {
|
||||
Set<Long> parentsToLookup = this.jdbcTemplate.query(sql, (ps) -> {
|
||||
int i = 0;
|
||||
for (ObjectIdentity oid : objectIdentities) {
|
||||
// Determine prepared statement values for this iteration
|
||||
|
||||
Reference in New Issue
Block a user