Merge pull request #184 from sdutry/WW-4713-deprecation-phase

WW-4713 Added deprecation warnings as preparation to drop searchValue…
This commit is contained in:
Lukasz Lenart
2017-11-11 16:24:40 +01:00
committed by GitHub
3 changed files with 7 additions and 0 deletions
@@ -123,6 +123,7 @@ public class Text extends ContextBean implements Param.UnnamedParametric {
protected List<Object> values = Collections.emptyList();
protected String actualName;
protected String name;
@Deprecated
protected String searchStack;
private boolean escapeHtml = false;
private boolean escapeJavaScript = false;
@@ -138,6 +139,7 @@ public class Text extends ContextBean implements Param.UnnamedParametric {
this.name = name;
}
@Deprecated
@StrutsTagAttribute(description="Search the stack if property is not found on resources", type = "Boolean", defaultValue = "false")
public void setSearchValueStack(String searchStack) {
this.searchStack = searchStack;
@@ -62,7 +62,10 @@ public class TextProviderHelper {
* @param searchStack search stack for the key
*
* @return the message if found, otherwise the defaultMessage
*
* @deprecated The stack should never be searched for the key. Use the version without the searchStack boolean instead.
*/
@Deprecated
public static String getText(String key, String defaultMessage, List<Object> args, ValueStack stack, boolean searchStack) {
String msg = null;
TextProvider tp = null;
@@ -34,6 +34,7 @@ public class TextTag extends ContextBeanTag {
private static final long serialVersionUID = -3075088084198264581L;
protected String name;
@Deprecated
protected String searchValueStack;
private boolean escapeHtml = false;
private boolean escapeJavaScript = false;
@@ -60,6 +61,7 @@ public class TextTag extends ContextBeanTag {
this.name = name;
}
@Deprecated
public void setSearchValueStack(String searchStack) {
this.searchValueStack = searchStack;
}