File tree 2 files changed +5
-6
lines changed
src/main/java/org/springframework/data/jpa/repository/query
2 files changed +5
-6
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 @@ -62,7 +62,6 @@ class StoredProcedureJpaQuery extends AbstractJpaQuery {
62
62
super (method , em );
63
63
this .procedureAttributes = method .getProcedureAttributes ();
64
64
this .useNamedParameters = useNamedParameters (method );
65
-
66
65
}
67
66
68
67
/**
@@ -204,7 +203,7 @@ private StoredProcedureQuery newAdhocStoredProcedureQuery() {
204
203
205
204
ProcedureParameter procedureOutput = procedureAttributes .getOutputProcedureParameters ().get (0 );
206
205
207
- /**
206
+ /*
208
207
* If there is a {@link java.sql.ResultSet} with a {@link ParameterMode#REF_CURSOR}, find the output parameter.
209
208
* Otherwise, no need, there is no need to find an output parameter.
210
209
*/
@@ -229,7 +228,7 @@ private StoredProcedureQuery newAdhocStoredProcedureQuery() {
229
228
230
229
/**
231
230
* Does this stored procedure have a {@link java.sql.ResultSet} using {@link ParameterMode#REF_CURSOR}?
232
- *
231
+ *
233
232
* @param procedureOutput
234
233
* @return
235
234
*/
You can’t perform that action at this time.
0 commit comments