Fix RpcUtils#getParameterTypes and AccessLogFilter#renameFile method (#10881)

This commit is contained in:
灼华 2022-11-08 13:56:36 +08:00 committed by GitHub
parent 305d290e5f
commit 86e2eb2de9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

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