From a0ade5f89b18596d12cf1f478d9554e5d4e7b1ff Mon Sep 17 00:00:00 2001 From: kohsuke Date: Sun, 16 Sep 2007 06:19:15 +0000 Subject: [PATCH] @stapler-constructor is deprecated. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4773 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/scm/browsers/FishEyeCVS.java | 5 ++--- core/src/main/java/hudson/scm/browsers/FishEyeSVN.java | 5 ++--- core/src/main/java/hudson/scm/browsers/ViewCVS.java | 5 ++--- core/src/main/java/hudson/scm/browsers/ViewSVN.java | 5 ++--- 4 files changed, 8 insertions(+), 12 deletions(-) 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); }