diff --git a/core/src/main/java/hudson/scm/browsers/FishEyeCVS.java b/core/src/main/java/hudson/scm/browsers/FishEyeCVS.java index cafc14ddb102cb293bcb668be1eb445e6cc9110d..0abf082b97508a95a580e44d848f1eb5e0bdb21d 100644 --- a/core/src/main/java/hudson/scm/browsers/FishEyeCVS.java +++ b/core/src/main/java/hudson/scm/browsers/FishEyeCVS.java @@ -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); } diff --git a/core/src/main/java/hudson/scm/browsers/FishEyeSVN.java b/core/src/main/java/hudson/scm/browsers/FishEyeSVN.java index 5411e9154d94ce55ceac068768d303e59e24c254..0a51e537e3da20c0510e8c5b0de3b776f708deb8 100644 --- a/core/src/main/java/hudson/scm/browsers/FishEyeSVN.java +++ b/core/src/main/java/hudson/scm/browsers/FishEyeSVN.java @@ -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); diff --git a/core/src/main/java/hudson/scm/browsers/ViewCVS.java b/core/src/main/java/hudson/scm/browsers/ViewCVS.java index 63e61c05aa036dfe19376fecc593ed31a5febe1e..e5fced15589b46308df9c7929de174331f5d5437 100644 --- a/core/src/main/java/hudson/scm/browsers/ViewCVS.java +++ b/core/src/main/java/hudson/scm/browsers/ViewCVS.java @@ -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); } diff --git a/core/src/main/java/hudson/scm/browsers/ViewSVN.java b/core/src/main/java/hudson/scm/browsers/ViewSVN.java index 69a65095584a9451a340147d43732915368adebb..2281437cd44a027e1f2d8ffff324077723801c8a 100644 --- a/core/src/main/java/hudson/scm/browsers/ViewSVN.java +++ b/core/src/main/java/hudson/scm/browsers/ViewSVN.java @@ -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); }