Mark `PollingResult` as `SerializableOnlyOverRemoting` (#6134)

This commit is contained in:
Basil Crow 2022-01-03 08:53:21 -08:00 committed by GitHub
parent 12ad7a841d
commit a07cc96c38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ import hudson.FilePath;
import hudson.Launcher;
import hudson.model.AbstractProject;
import hudson.model.TaskListener;
import java.io.Serializable;
import org.jenkinsci.remoting.SerializableOnlyOverRemoting;
/**
* Immutable object that represents the result of {@linkplain SCM#poll(AbstractProject, Launcher, FilePath, TaskListener, SCMRevisionState) SCM polling}.
@ -18,7 +18,7 @@ import java.io.Serializable;
* @author Kohsuke Kawaguchi
* @since 1.345
*/
public final class PollingResult implements Serializable {
public final class PollingResult implements SerializableOnlyOverRemoting {
/**
* Baseline of the comparison.
* (This comes from either the workspace, or from the remote repository as of the last polling.