Fix RpcUtils#getParameterTypes and AccessLogFilter#renameFile method (#10881)
This commit is contained in:
parent
305d290e5f
commit
86e2eb2de9
|
|
@ -212,7 +212,7 @@ public class AccessLogFilter implements Filter {
|
|||
String now = fileNameFormatter.format(new Date());
|
||||
String last = fileNameFormatter.format(new Date(file.lastModified()));
|
||||
if (!now.equals(last)) {
|
||||
File archive = new File(file.getAbsolutePath() + "." + last);
|
||||
File archive = new File(file.getAbsolutePath() + "." + now);
|
||||
file.renameTo(archive);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@ public class RpcUtils {
|
|||
}
|
||||
Class<?>[] parameterTypes = new Class<?>[types.length];
|
||||
for (int i = 0; i < types.length; i++) {
|
||||
parameterTypes[i] = ReflectUtils.forName(types[0]);
|
||||
parameterTypes[i] = ReflectUtils.forName(types[i]);
|
||||
}
|
||||
return parameterTypes;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue