提交 7a05d38c 编写于 作者: K kohsuke

@stapler-constructor is deprecated in favor of @DataBoundConstructor.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@10176 71c3de6d-444a-0410-be80-ed276b4c234a
上级 b5a52097
......@@ -17,6 +17,7 @@ import hudson.tasks.LabelFinder;
import hudson.util.ClockDifference;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
import org.kohsuke.stapler.DataBoundConstructor;
import javax.servlet.ServletException;
import java.io.File;
......@@ -86,9 +87,7 @@ public final class Slave implements Node, Serializable {
private transient volatile Set<Label> dynamicLabels;
private transient volatile int dynamicLabelsInstanceHash;
/**
* @stapler-constructor
*/
@DataBoundConstructor
public Slave(String name, String description, String remoteFS, String numExecutors,
Mode mode, String label) throws FormException {
this.name = name;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册