style: format code

This commit is contained in:
ReaJason
2025-02-28 22:44:10 +08:00
parent badf60ebd4
commit 839653bd01
4 changed files with 6 additions and 5 deletions
@@ -9,7 +9,7 @@ import com.reajason.javaweb.memshell.packer.Packer;
* @since 2025/1/30
*/
public class RhinoPacker implements Packer {
@Override
public String pack(GenerateResult generateResult) {
return Packers.ScriptEngine.getInstance().pack(generateResult);
@@ -45,7 +45,7 @@ public abstract class AbstractShell {
return Collections.unmodifiableSet(toolMapping.getSupportedShellTypes());
}
public Set<ShellTool> getSupportedShellTools(){
public Set<ShellTool> getSupportedShellTools() {
return Collections.unmodifiableSet(map.keySet());
}
File diff suppressed because one or more lines are too long
@@ -51,7 +51,7 @@ public class Tomcat10ContainerTest {
static Stream<Arguments> casesProvider() {
Server server = Server.Tomcat;
List<String> supportedShellTypes = List.of(ShellType.JAKARTA_FILTER, ShellType.JAKARTA_LISTENER, ShellType.JAKARTA_VALVE, ShellType.JAKARTA_WEBSOCKET,
List<String> supportedShellTypes = List.of(ShellType.JAKARTA_FILTER, ShellType.JAKARTA_LISTENER, ShellType.JAKARTA_VALVE, ShellType.JAKARTA_WEBSOCKET,
ShellType.AGENT_FILTER_CHAIN, ShellType.CATALINA_AGENT_CONTEXT_VALVE);
List<Packers> testPackers = List.of(Packers.JSP, Packers.JSPX, Packers.JavaDeserialize);
return TestCasesProvider.getTestCases(imageName, server, supportedShellTypes, testPackers, null, List.of(ShellTool.AntSword));