mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-24 16:04:00 +08:00
[ISSUE #4335] Replace deprecated api in cl
This commit is contained in:
+1
-1
@@ -75,7 +75,7 @@ public class FastCodesHeaderTest {
|
||||
private void check(RemotingCommand command, List<Field> fields,
|
||||
Class<? extends CommandCustomHeader> classHeader) throws Exception {
|
||||
CommandCustomHeader o1 = command.decodeCommandCustomHeader(classHeader, false);
|
||||
CommandCustomHeader o2 = classHeader.newInstance();
|
||||
CommandCustomHeader o2 = classHeader.getDeclaredConstructor().newInstance();
|
||||
((FastCodesHeader)o2).decode(command.getExtFields());
|
||||
for (Field f : fields) {
|
||||
Object value1 = f.get(o1);
|
||||
|
||||
Reference in New Issue
Block a user