diff --git a/src/main/java/org/jenkinsci/plugins/scriptler/builder/ScriptlerBuilder.java b/src/main/java/org/jenkinsci/plugins/scriptler/builder/ScriptlerBuilder.java index d6191021..758f6293 100644 --- a/src/main/java/org/jenkinsci/plugins/scriptler/builder/ScriptlerBuilder.java +++ b/src/main/java/org/jenkinsci/plugins/scriptler/builder/ScriptlerBuilder.java @@ -30,6 +30,7 @@ import java.io.Serial; import java.io.Serializable; import java.util.ArrayList; +import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -108,7 +109,7 @@ public ScriptlerBuilder( @CheckForNull List parameters) { this.builderId = builderId; this.scriptId = scriptId; - this.parameters = parameters == null ? List.of() : List.copyOf(parameters); + this.parameters = new ArrayList<>(parameters == null ? List.of() : parameters); this.propagateParams = propagateParams; } @@ -180,7 +181,7 @@ public Parameter[] getParameters() { @NonNull public List getParametersList() { - return parameters; + return Collections.unmodifiableList(parameters); } public String getBuilderId() { diff --git a/src/main/resources/META-INF/hudson.remoting.ClassFilter b/src/main/resources/META-INF/hudson.remoting.ClassFilter deleted file mode 100644 index d6da0060..00000000 --- a/src/main/resources/META-INF/hudson.remoting.ClassFilter +++ /dev/null @@ -1,2 +0,0 @@ -java.util.ImmutableCollections$ListN -java.util.ImmutableCollections$List12