This is an automated email from the ASF dual-hosted git repository.
lukaszlenart pushed a commit to branch release/struts-6-7-x
in repository https://gitbox.apache.org/repos/asf/struts.git
The following commit(s) were added to refs/heads/release/struts-6-7-x by this
push:
new 1fe822cca WW-5529 Drops unused misleading setter setMaxLength in
favour of setMaxlength (#1221) (#1222)
1fe822cca is described below
commit 1fe822cca0e1fd8b5d25451c4262a85ca8283830
Author: Lukasz Lenart <[email protected]>
AuthorDate: Mon Feb 17 10:27:04 2025 +0100
WW-5529 Drops unused misleading setter setMaxLength in favour of
setMaxlength (#1221) (#1222)
---
.../org/apache/struts2/components/TextField.java | 22 ++++++++--------------
1 file changed, 8 insertions(+), 14 deletions(-)
diff --git a/core/src/main/java/org/apache/struts2/components/TextField.java
b/core/src/main/java/org/apache/struts2/components/TextField.java
index 07a983c27..3253605ca 100644
--- a/core/src/main/java/org/apache/struts2/components/TextField.java
+++ b/core/src/main/java/org/apache/struts2/components/TextField.java
@@ -50,17 +50,16 @@ import javax.servlet.http.HttpServletResponse;
* </pre>
*/
@StrutsTag(
- name="textfield",
- tldTagClass="org.apache.struts2.views.jsp.ui.TextFieldTag",
- description="Render an HTML input field of type text",
- allowDynamicAttributes=true)
+ name = "textfield",
+ tldTagClass = "org.apache.struts2.views.jsp.ui.TextFieldTag",
+ description = "Render an HTML input field of type text",
+ allowDynamicAttributes = true)
public class TextField extends UIBean {
/**
* The name of the default template for the TextFieldTag
*/
final public static String TEMPLATE = "text";
-
protected String maxlength;
protected String readonly;
protected String size;
@@ -95,27 +94,22 @@ public class TextField extends UIBean {
}
- @StrutsTagAttribute(description="HTML maxlength attribute", type="Integer")
+ @StrutsTagAttribute(description = "HTML maxlength attribute", type =
"Integer")
public void setMaxlength(String maxlength) {
this.maxlength = maxlength;
}
- @StrutsTagAttribute(description="Deprecated. Use maxlength instead.",
type="Integer")
- public void setMaxLength(String maxlength) {
- this.maxlength = maxlength;
- }
-
- @StrutsTagAttribute(description="Whether the input is readonly",
type="Boolean", defaultValue="false")
+ @StrutsTagAttribute(description = "Whether the input is readonly", type =
"Boolean", defaultValue = "false")
public void setReadonly(String readonly) {
this.readonly = readonly;
}
- @StrutsTagAttribute(description="HTML size attribute", type="Integer")
+ @StrutsTagAttribute(description = "HTML size attribute", type = "Integer")
public void setSize(String size) {
this.size = size;
}
- @StrutsTagAttribute(description="Specifies the html5 type element to
display. e.g. text, email, url", defaultValue="text")
+ @StrutsTagAttribute(description = "Specifies the html5 type element to
display. e.g. text, email, url", defaultValue = "text")
public void setType(String type) {
this.type = type;
}