test: use method parameters

This commit is contained in:
ReaJason
2024-12-05 22:40:01 +08:00
parent 3a2e0392da
commit a9ded0670e
12 changed files with 283 additions and 194 deletions
@@ -13,5 +13,5 @@ public enum ShellTool {
/**
* 命令回显
*/
COMMAND
Command
}
@@ -89,7 +89,7 @@ public class TomcatShell {
);
break;
}
case COMMAND: {
case Command: {
classPair = COMMAND_SHELL_MAP.get(shellType);
CommandShellConfig commandConfig = (CommandShellConfig) shellConfig;
shellBytes = CommandGenerator.generate(classPair.getLeft(),