Skip to content

Commit 6017988

Browse files
committed
Polishing.
Reformat code.
1 parent 750a74c commit 6017988

File tree

1 file changed

+10
-10
lines changed
  • spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/support

1 file changed

+10
-10
lines changed

spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/support/Querydsl.java

+10-10
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ public Querydsl(EntityManager em, PathBuilder<?> builder) {
7777
*/
7878
public <T> AbstractJPAQuery<T, JPAQuery<T>> createQuery() {
7979

80-
return switch (provider) {
81-
case ECLIPSELINK -> new SpringDataJpaQuery<>(em, EclipseLinkTemplates.DEFAULT);
82-
case HIBERNATE -> new SpringDataJpaQuery<>(em, HQLTemplates.DEFAULT);
83-
default -> new SpringDataJpaQuery<>(em);
84-
};
80+
return switch (provider) {
81+
case ECLIPSELINK -> new SpringDataJpaQuery<>(em, EclipseLinkTemplates.DEFAULT);
82+
case HIBERNATE -> new SpringDataJpaQuery<>(em, HQLTemplates.DEFAULT);
83+
default -> new SpringDataJpaQuery<>(em);
84+
};
8585
}
8686

8787
/**
@@ -198,11 +198,11 @@ private NullHandling toQueryDslNullHandling(org.springframework.data.domain.Sort
198198

199199
Assert.notNull(nullHandling, "NullHandling must not be null");
200200

201-
return switch (nullHandling) {
202-
case NULLS_FIRST -> NullHandling.NullsFirst;
203-
case NULLS_LAST -> NullHandling.NullsLast;
204-
default -> NullHandling.Default;
205-
};
201+
return switch (nullHandling) {
202+
case NULLS_FIRST -> NullHandling.NullsFirst;
203+
case NULLS_LAST -> NullHandling.NullsLast;
204+
default -> NullHandling.Default;
205+
};
206206
}
207207

208208
/**

0 commit comments

Comments
 (0)