File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
generator/src/main/java/com/reajason/javaweb/memshell/generator/command Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ public DynamicType.Builder<?> getBuilder() {
4141 DynamicType .Builder <?> builder = new ByteBuddy ()
4242 .redefine (commandConfig .getShellClass ())
4343 .name (commandConfig .getShellClassName ())
44+ .field (named ("paramName" )).value (commandConfig .getParamName ())
4445 .visit (new TargetJreVersionVisitorWrapper (shellConfig .getTargetJreVersion ()));
4546
4647 if (shellConfig .isJakarta ()) {
@@ -59,9 +60,6 @@ public DynamicType.Builder<?> getBuilder() {
5960 put ("paramName" , commandConfig .getParamName ());
6061 }})
6162 );
62- } else if (!ShellType .WEBSOCKET .equals (shellType )) {
63- builder = builder .field (named ("paramName" ))
64- .value (commandConfig .getParamName ());
6563 }
6664
6765 if (CommandConfig .Encryptor .DOUBLE_BASE64 .equals (commandConfig .getEncryptor ())) {
You can’t perform that action at this time.
0 commit comments