Polishing

This commit is contained in:
Juergen Hoeller
2017-04-13 16:17:05 +02:00
parent 46a790f9be
commit 0b118322b0
6 changed files with 11 additions and 19 deletions

View File

@@ -249,13 +249,10 @@ public class ServletInvocableHandlerMethod extends InvocableHandlerMethod {
public ConcurrentResultMethodParameter(Object returnValue) {
super(-1);
this.returnValue = returnValue;
ResolvableType candidateReturnType =
ResolvableType.forType(super.getGenericParameterType()).getGeneric(0);
this.returnType = returnValue instanceof ReactiveTypeHandler.CollectedValuesList ?
ResolvableType.forClassWithGenerics(List.class, candidateReturnType) :
candidateReturnType;
this.returnType = (returnValue instanceof ReactiveTypeHandler.CollectedValuesList ?
ResolvableType.forClassWithGenerics(List.class, candidateReturnType) : candidateReturnType);
}
public ConcurrentResultMethodParameter(ConcurrentResultMethodParameter original) {