diff --git a/core/src/main/java/hudson/scm/browsers/FishEyeCVS.java b/core/src/main/java/hudson/scm/browsers/FishEyeCVS.java index cafc14ddb1..0abf082b97 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 5411e9154d..0a51e537e3 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 63e61c05aa..e5fced1558 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 69a6509558..2281437cd4 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); }