Skip to content

Commit 14eb7be

Browse files
committed
Expose ReturnedType factory method.
Closes #3163
1 parent 13f1f77 commit 14eb7be

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/main/java/org/springframework/data/repository/query/ReturnedType.java

+5-4
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,13 @@ private ReturnedType(Class<?> domainType) {
5757
/**
5858
* Creates a new {@link ReturnedType} for the given returned type, domain type and {@link ProjectionFactory}.
5959
*
60-
* @param returnedType must not be {@literal null}.
61-
* @param domainType must not be {@literal null}.
60+
* @param returnedType return type for the query result, must not be {@literal null}.
61+
* @param domainType domain type for the query context, must not be {@literal null}.
6262
* @param factory must not be {@literal null}.
63-
* @return
63+
* @return the ReturnedType for the given returned type, domain type and {@link ProjectionFactory}.
64+
* @since 3.3.5
6465
*/
65-
static ReturnedType of(Class<?> returnedType, Class<?> domainType, ProjectionFactory factory) {
66+
public static ReturnedType of(Class<?> returnedType, Class<?> domainType, ProjectionFactory factory) {
6667

6768
Assert.notNull(returnedType, "Returned type must not be null");
6869
Assert.notNull(domainType, "Domain type must not be null");

0 commit comments

Comments
 (0)