修复返回值和入参没有带上全路径

This commit is contained in:
zhangxin10 2015-11-10 15:41:42 +08:00
parent a363750af5
commit 971942d6ce
1 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ public class TracingEnhanceProcessor implements BeanPostProcessor {
result.append("(");
int index = 0;
for (Class param : method.getParameterTypes()) {
result.append(param.getSimpleName() + " " + param.getSimpleName().
result.append(param.getName() + " " + param.getSimpleName().
toLowerCase() + "$" + (index++) + ",");
}
if (method.getGenericParameterTypes().length > 0) {
@ -156,7 +156,7 @@ public class TracingEnhanceProcessor implements BeanPostProcessor {
}
private String generateMethodHead(Method method) {
return "public " + method.getReturnType().getSimpleName() + " " + method.getName();
return "public " + method.getReturnType().getName() + " " + method.getName();
}
private CtClass createProxyClass(Object bean, ClassPool mPool) {