polishing
This commit is contained in:
parent
d67f0803c4
commit
c1eb50ef48
|
@ -62,7 +62,7 @@ public abstract class AbstractMethodArgumentResolutionException extends Messagin
|
|||
protected static String getMethodParamMessage(MethodParameter param) {
|
||||
return new StringBuilder("Could not resolve method parameter at index ")
|
||||
.append(param.getParameterIndex()).append(" in method: ")
|
||||
.append(param.getMethod().toGenericString()).toString();
|
||||
.append(param.getMethod().toGenericString()).append(" ").toString();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -55,7 +55,7 @@ public class MessageMethodArgumentResolver implements HandlerMethodArgumentResol
|
|||
|
||||
if (expectedPayloadType != null && !expectedPayloadType.isInstance(payload)) {
|
||||
throw new MethodArgumentTypeMismatchException(message, parameter,
|
||||
"The expected Message<?> payload type [" + expectedPayloadType.getClass().getName() +
|
||||
"The expected Message<?> payload type [" + expectedPayloadType.getName() +
|
||||
"] does not match the actual payload type [" + payload.getClass().getName() + "]");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue