File tree 2 files changed +3
-4
lines changed
src/main/java/org/springframework/data/jpa/repository/query
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 18
18
import java .util .List ;
19
19
20
20
import org .springframework .lang .Nullable ;
21
- import org .springframework .util .StringUtils ;
21
+ import org .springframework .util .ObjectUtils ;
22
22
23
23
/**
24
24
* A wrapper for a String representation of a query offering information about the query.
@@ -35,7 +35,7 @@ interface DeclaredQuery {
35
35
* @return a {@literal DeclaredQuery} instance even for a {@literal null} or empty argument.
36
36
*/
37
37
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 );
39
39
}
40
40
41
41
/**
@@ -77,7 +77,7 @@ static DeclaredQuery of(@Nullable String query) {
77
77
* Creates a new {@literal DeclaredQuery} representing a count query, i.e. a query returning the number of rows to be
78
78
* expected from the original query, either derived from the query wrapped by this instance or from the information
79
79
* passed as arguments.
80
- *
80
+ *
81
81
* @param countQuery an optional query string to be used if present.
82
82
* @param countQueryProjection an optional return type for the query.
83
83
* @return a new {@literal DeclaredQuery} instance.
Original file line number Diff line number Diff line change @@ -65,7 +65,6 @@ class StoredProcedureJpaQuery extends AbstractJpaQuery {
65
65
super (method , em );
66
66
this .procedureAttributes = method .getProcedureAttributes ();
67
67
this .useNamedParameters = useNamedParameters (method );
68
-
69
68
}
70
69
71
70
/**
You can’t perform that action at this time.
0 commit comments