|
21 | 21 | import java.util.List; |
22 | 22 |
|
23 | 23 | import org.jspecify.annotations.Nullable; |
| 24 | + |
24 | 25 | import org.springframework.core.MethodParameter; |
25 | | -import org.springframework.core.ResolvableType; |
26 | 26 | import org.springframework.core.annotation.MergedAnnotation; |
27 | 27 | import org.springframework.core.annotation.MergedAnnotationSelectors; |
28 | 28 | import org.springframework.core.annotation.MergedAnnotations; |
29 | 29 | import org.springframework.data.repository.core.RepositoryInformation; |
30 | 30 | import org.springframework.data.repository.query.Parameter; |
31 | 31 | import org.springframework.data.repository.query.QueryMethod; |
32 | 32 | import org.springframework.data.repository.query.ReturnedType; |
33 | | -import org.springframework.javapoet.TypeName; |
34 | 33 | import org.springframework.util.ObjectUtils; |
35 | 34 |
|
36 | 35 | /** |
@@ -154,40 +153,6 @@ public ReturnedType getReturnedType() { |
154 | 153 | return queryMethod.getResultProcessor().getReturnedType(); |
155 | 154 | } |
156 | 155 |
|
157 | | - /** |
158 | | - * @return the actual returned domain type. |
159 | | - * @see org.springframework.data.repository.core.RepositoryMetadata#getReturnedDomainClass(Method) |
160 | | - */ |
161 | | - @Deprecated(forRemoval = true) |
162 | | - public ResolvableType getActualReturnType() { |
163 | | - return targetMethodMetadata.getActualReturnType(); |
164 | | - } |
165 | | - |
166 | | - /** |
167 | | - * @return the query method return type. |
168 | | - * @see org.springframework.data.repository.core.RepositoryMetadata#getReturnType(Method) |
169 | | - */ |
170 | | - @Deprecated(forRemoval = true) |
171 | | - public ResolvableType getReturnType() { |
172 | | - return targetMethodMetadata.getReturnType(); |
173 | | - } |
174 | | - |
175 | | - /** |
176 | | - * @return the {@link TypeName} representing the method return type. |
177 | | - */ |
178 | | - @Deprecated(forRemoval = true) |
179 | | - public TypeName getReturnTypeName() { |
180 | | - return TypeName.get(getReturnType().getType()); |
181 | | - } |
182 | | - |
183 | | - /** |
184 | | - * @return the {@link TypeName} representing the actual (component) method return type. |
185 | | - */ |
186 | | - @Deprecated(forRemoval = true) |
187 | | - public TypeName getActualReturnTypeName() { |
188 | | - return TypeName.get(getActualReturnType().getType()); |
189 | | - } |
190 | | - |
191 | 156 | /** |
192 | 157 | * Returns the required parameter name for the {@link Parameter#isBindable() bindable parameter} at the given |
193 | 158 | * {@code parameterIndex} or throws {@link IllegalArgumentException} if the parameter cannot be determined by its |
|
0 commit comments