Skip to content

Commit affa2a2

Browse files
committed
Polishing.
Move off deprecated API. See #2319
1 parent 29d0ef2 commit affa2a2

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import java.util.List;
1919

2020
import org.springframework.lang.Nullable;
21-
import org.springframework.util.StringUtils;
21+
import org.springframework.util.ObjectUtils;
2222

2323
/**
2424
* A wrapper for a String representation of a query offering information about the query.
@@ -35,7 +35,7 @@ interface DeclaredQuery {
3535
* @return a {@literal DeclaredQuery} instance even for a {@literal null} or empty argument.
3636
*/
3737
static DeclaredQuery of(@Nullable String query) {
38-
return StringUtils.isEmpty(query) ? EmptyDeclaredQuery.EMPTY_QUERY : new StringQuery(query);
38+
return ObjectUtils.isEmpty(query) ? EmptyDeclaredQuery.EMPTY_QUERY : new StringQuery(query);
3939
}
4040

4141
/**
@@ -77,7 +77,7 @@ static DeclaredQuery of(@Nullable String query) {
7777
* Creates a new {@literal DeclaredQuery} representing a count query, i.e. a query returning the number of rows to be
7878
* expected from the original query, either derived from the query wrapped by this instance or from the information
7979
* passed as arguments.
80-
*
80+
*
8181
* @param countQuery an optional query string to be used if present.
8282
* @param countQueryProjection an optional return type for the query.
8383
* @return a new {@literal DeclaredQuery} instance.

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

-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ class StoredProcedureJpaQuery extends AbstractJpaQuery {
6565
super(method, em);
6666
this.procedureAttributes = method.getProcedureAttributes();
6767
this.useNamedParameters = useNamedParameters(method);
68-
6968
}
7069

7170
/**

0 commit comments

Comments
 (0)