polishing

This commit is contained in:
Stephane Nicoll 2014-03-25 16:49:54 +01:00
parent d67f0803c4
commit c1eb50ef48
2 changed files with 2 additions and 2 deletions

View File

@ -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();
}
}

View File

@ -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() + "]");
}