Skip to content

Commit 7fe5ede

Browse files
committed
Polishing.
Minor formatting. See #2280 Original pull request #2399
1 parent 0813bc2 commit 7fe5ede

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/org/springframework/data/jpa/repository/query/QueryUtils.java

+4
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ private static String getOrderClause(Set<String> joinAliases, Set<String> select
292292
checkSortExpression(order);
293293

294294
if (selectionAlias.contains(property)) {
295+
295296
return String.format("%s %s", //
296297
order.isIgnoreCase() ? String.format("lower(%s)", property) : property, //
297298
toJpaDirection(order));
@@ -300,7 +301,9 @@ private static String getOrderClause(Set<String> joinAliases, Set<String> select
300301
boolean qualifyReference = !property.contains("("); // ( indicates a function
301302

302303
for (String joinAlias : joinAliases) {
304+
303305
if (property.startsWith(joinAlias.concat("."))) {
306+
304307
qualifyReference = false;
305308
break;
306309
}
@@ -342,6 +345,7 @@ static Set<String> getOuterJoinAliases(String query) {
342345
* @return a {@literal Set} containing all found aliases. Guaranteed to be not {@literal null}.
343346
*/
344347
private static Set<String> getFieldAliases(String query) {
348+
345349
Set<String> result = new HashSet<>();
346350
Matcher matcher = FIELD_ALIAS_PATTERN.matcher(query);
347351

0 commit comments

Comments
 (0)