File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
src/main/java/org/springframework/data/jpa/repository/query Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1818import java .util .List ;
1919
2020import 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.
Original file line number Diff line number Diff 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 /**
You can’t perform that action at this time.
0 commit comments