提交 a0ade5f8 编写于 作者: K kohsuke

@stapler-constructor is deprecated.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4773 71c3de6d-444a-0410-be80-ed276b4c234a
上级 3ae50202
......@@ -14,6 +14,7 @@ import java.util.regex.Pattern;
import javax.servlet.ServletException;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
import org.kohsuke.stapler.DataBoundConstructor;
/**
* Repository browser for CVS in a FishEye server.
......@@ -26,9 +27,7 @@ public final class FishEyeCVS extends CVSRepositoryBrowser {
*/
public final URL url;
/**
* @stapler-constructor
*/
@DataBoundConstructor
public FishEyeCVS(URL url) {
this.url = normalizeToEndWithSlash(url);
}
......
......@@ -10,6 +10,7 @@ import hudson.scm.EditType;
import hudson.util.FormFieldValidator;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
import org.kohsuke.stapler.DataBoundConstructor;
import javax.servlet.ServletException;
import java.io.IOException;
......@@ -37,9 +38,7 @@ public class FishEyeSVN extends SubversionRepositoryBrowser {
*/
private final String rootModule;
/**
* @stapler-constructor
*/
@DataBoundConstructor
public FishEyeSVN(URL url, String rootModule) throws MalformedURLException {
this.url = normalizeToEndWithSlash(url);
......
......@@ -7,6 +7,7 @@ import hudson.scm.CVSChangeLogSet.Revision;
import hudson.scm.CVSRepositoryBrowser;
import hudson.scm.RepositoryBrowser;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.DataBoundConstructor;
import java.io.IOException;
import java.net.MalformedURLException;
......@@ -27,9 +28,7 @@ public final class ViewCVS extends CVSRepositoryBrowser {
*/
public final URL url;
/**
* @stapler-constructor
*/
@DataBoundConstructor
public ViewCVS(URL url) throws MalformedURLException {
this.url = normalizeToEndWithSlash(url);
}
......
......@@ -7,6 +7,7 @@ import hudson.scm.SubversionChangeLogSet;
import hudson.scm.SubversionChangeLogSet.Path;
import hudson.scm.SubversionRepositoryBrowser;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.DataBoundConstructor;
import java.io.IOException;
import java.net.MalformedURLException;
......@@ -29,9 +30,7 @@ public class ViewSVN extends SubversionRepositoryBrowser {
*/
public final URL url;
/**
* @stapler-constructor
*/
@DataBoundConstructor
public ViewSVN(URL url) throws MalformedURLException {
this.url = normalizeToEndWithSlash(url);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册