use simple type name in "missing parameter" exception text

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3196 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Juergen Hoeller 2010-03-30 21:13:12 +00:00
parent 6132e318b1
commit 5c701c63ed
2 changed files with 2 additions and 2 deletions

View File

@ -521,7 +521,7 @@ public class AnnotationMethodHandlerAdapter extends PortletContentGenerator
@Override
protected void raiseMissingParameterException(String paramName, Class paramType) throws Exception {
throw new MissingPortletRequestParameterException(paramName, paramType.getName());
throw new MissingPortletRequestParameterException(paramName, paramType.getSimpleName());
}
@Override

View File

@ -688,7 +688,7 @@ public class AnnotationMethodHandlerAdapter extends WebContentGenerator
@Override
protected void raiseMissingParameterException(String paramName, Class paramType) throws Exception {
throw new MissingServletRequestParameterException(paramName, paramType.getName());
throw new MissingServletRequestParameterException(paramName, paramType.getSimpleName());
}
@Override