You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2017/03/14 18:36:03 UTC
[10/24] struts git commit: Marks deprecated constructor
Marks deprecated constructor
Project: http://git-wip-us.apache.org/repos/asf/struts/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/442a52fe
Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/442a52fe
Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/442a52fe
Branch: refs/heads/master
Commit: 442a52fe48745bc03b3d6b15e74a01cdf0c9f6a1
Parents: 0b16543
Author: Lukasz Lenart <lu...@apache.org>
Authored: Thu Mar 9 09:43:38 2017 +0100
Committer: Lukasz Lenart <lu...@apache.org>
Committed: Thu Mar 9 09:43:38 2017 +0100
----------------------------------------------------------------------
.../xwork2/validator/DelegatingValidatorContext.java | 6 ++++++
1 file changed, 6 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/struts/blob/442a52fe/core/src/main/java/com/opensymphony/xwork2/validator/DelegatingValidatorContext.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/DelegatingValidatorContext.java b/core/src/main/java/com/opensymphony/xwork2/validator/DelegatingValidatorContext.java
index abaa761..e35d7a8 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/DelegatingValidatorContext.java
+++ b/core/src/main/java/com/opensymphony/xwork2/validator/DelegatingValidatorContext.java
@@ -56,7 +56,10 @@ public class DelegatingValidatorContext implements ValidatorContext {
* (validation aware instance and a locale and text provider) are created based on the given action.
*
* @param object the object to use for validation (usually an Action).
+ *
+ * @deprecated will be removed, do not use!
*/
+ @Deprecated
public DelegatingValidatorContext(Object object) {
this.localeProvider = makeLocaleProvider(object);
this.validationAware = makeValidationAware(object);
@@ -68,7 +71,10 @@ public class DelegatingValidatorContext implements ValidatorContext {
* the validation context are created based on the class.
*
* @param clazz the class to initialize the context with.
+ *
+ * @deprecated will be removed, do not use!
*/
+ @Deprecated
public DelegatingValidatorContext(Class clazz) {
localeProvider = new ActionContextLocaleProvider();
textProvider = new TextProviderFactory().createInstance(clazz, localeProvider);