Skip to content

Commit

Permalink
Revert "[JENKINS-38850] - Add migration logic for actions loaded from…
Browse files Browse the repository at this point in the history
… the disk"

This reverts commit 77f4ede.
  • Loading branch information
chenco166 committed Sep 1, 2017
1 parent 1e816fa commit 92efcf3
Showing 1 changed file with 0 additions and 11 deletions.
Expand Up @@ -26,17 +26,6 @@ public MultiJobParametersAction(ParameterValue... parameters) {
this(Arrays.asList(parameters));
}

private Object readResolve() {
List<ParameterValue> superParameters = super.getParameters();
// Migrate the stuf if there is inconsistency
if (!parameters.isEmpty() && (superParameters == null || superParameters.isEmpty())) {
// TODO: Should it actually check if the lists are diffrerent?
// No use-case exception reflection/groovy
return new MultiJobParametersAction(parameters);
}
return this;
}

@Override
public List<ParameterValue> getParameters() {
return Collections.unmodifiableList(parameters);
Expand Down

0 comments on commit 92efcf3

Please sign in to comment.