Revision: 545
http://svn.sourceforge.net/stripes/?rev=545&view=rev
Author: bengunter
Date: 2007-05-18 16:59:57 -0700 (Fri, 18 May 2007)
Log Message:
-----------
Added @Override where appropriate
Modified Paths:
--------------
trunk/examples/src/net/sourceforge/stripes/examples/bugzooky/biz/Component.java
trunk/examples/src/net/sourceforge/stripes/examples/bugzooky/biz/Person.java
trunk/stripes/src/net/sourceforge/stripes/action/ActionBeanContext.java
trunk/stripes/src/net/sourceforge/stripes/action/FileBean.java
trunk/stripes/src/net/sourceforge/stripes/action/LocalizableMessage.java
trunk/stripes/src/net/sourceforge/stripes/action/OnwardResolution.java
trunk/stripes/src/net/sourceforge/stripes/action/SimpleMessage.java
trunk/stripes/src/net/sourceforge/stripes/controller/DefaultActionBeanPropertyBinder.java
trunk/stripes/src/net/sourceforge/stripes/controller/DispatcherServlet.java
trunk/stripes/src/net/sourceforge/stripes/controller/ParameterName.java
trunk/stripes/src/net/sourceforge/stripes/controller/StripesRequestWrapper.java
trunk/stripes/src/net/sourceforge/stripes/integration/spring/SpringAwareActionResolver.java
trunk/stripes/src/net/sourceforge/stripes/mock/MockServletOutputStream.java
trunk/stripes/src/net/sourceforge/stripes/tag/BeanFirstPopulationStrategy.java
trunk/stripes/src/net/sourceforge/stripes/tag/ErrorsFooterTag.java
trunk/stripes/src/net/sourceforge/stripes/tag/ErrorsHeaderTag.java
trunk/stripes/src/net/sourceforge/stripes/tag/ErrorsTag.java
trunk/stripes/src/net/sourceforge/stripes/tag/ErrorsTagExtraInfo.java
trunk/stripes/src/net/sourceforge/stripes/tag/FormTag.java
trunk/stripes/src/net/sourceforge/stripes/tag/HtmlTagSupport.java
trunk/stripes/src/net/sourceforge/stripes/tag/HtmlTagSupportBeanInfo.java
trunk/stripes/src/net/sourceforge/stripes/tag/IndividualErrorTag.java
trunk/stripes/src/net/sourceforge/stripes/tag/InputButtonSupportTag.java
trunk/stripes/src/net/sourceforge/stripes/tag/InputCheckBoxTag.java
trunk/stripes/src/net/sourceforge/stripes/tag/InputFileTag.java
trunk/stripes/src/net/sourceforge/stripes/tag/InputHiddenTag.java
trunk/stripes/src/net/sourceforge/stripes/tag/InputImageTag.java
trunk/stripes/src/net/sourceforge/stripes/tag/InputLabelTag.java
trunk/stripes/src/net/sourceforge/stripes/tag/InputOptionTag.java
trunk/stripes/src/net/sourceforge/stripes/tag/InputOptionsCollectionTag.java
trunk/stripes/src/net/sourceforge/stripes/tag/InputOptionsEnumerationTag.java
trunk/stripes/src/net/sourceforge/stripes/tag/InputPasswordTag.java
trunk/stripes/src/net/sourceforge/stripes/tag/InputRadioButtonTag.java
trunk/stripes/src/net/sourceforge/stripes/tag/InputSelectTag.java
trunk/stripes/src/net/sourceforge/stripes/tag/InputTagSupport.java
trunk/stripes/src/net/sourceforge/stripes/tag/InputTextAreaTag.java
trunk/stripes/src/net/sourceforge/stripes/tag/InputTextTag.java
trunk/stripes/src/net/sourceforge/stripes/tag/LinkTag.java
trunk/stripes/src/net/sourceforge/stripes/tag/MessagesTag.java
trunk/stripes/src/net/sourceforge/stripes/tag/UrlTag.java
trunk/stripes/src/net/sourceforge/stripes/tag/UseActionBeanTag.java
trunk/stripes/src/net/sourceforge/stripes/tag/WizardFieldsTag.java
trunk/stripes/src/net/sourceforge/stripes/tag/layout/LayoutComponentTag.java
trunk/stripes/src/net/sourceforge/stripes/tag/layout/LayoutContext.java
trunk/stripes/src/net/sourceforge/stripes/tag/layout/LayoutDefinitionTag.java
trunk/stripes/src/net/sourceforge/stripes/tag/layout/LayoutRenderTag.java
trunk/stripes/src/net/sourceforge/stripes/util/bean/Node.java
trunk/stripes/src/net/sourceforge/stripes/validation/BigDecimalTypeConverter.java
trunk/stripes/src/net/sourceforge/stripes/validation/BigIntegerTypeConverter.java
trunk/stripes/src/net/sourceforge/stripes/validation/LocalizableError.java
trunk/stripes/src/net/sourceforge/stripes/validation/ScopedLocalizableError.java
trunk/stripes/src/net/sourceforge/stripes/validation/SimpleError.java
trunk/stripes/src/net/sourceforge/stripes/validation/ValidationErrors.java
trunk/stripes/src/net/sourceforge/stripes/validation/ValidationMetadata.java
Modified:
trunk/examples/src/net/sourceforge/stripes/examples/bugzooky/biz/Component.java
===================================================================
---
trunk/examples/src/net/sourceforge/stripes/examples/bugzooky/biz/Component.java
2007-05-15 17:24:13 UTC (rev 544)
+++
trunk/examples/src/net/sourceforge/stripes/examples/bugzooky/biz/Component.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -31,6 +31,7 @@
public void setName(String name) { this.name = name; }
/** Perform equality checks based on identity. */
+ @Override
public boolean equals(Object obj) {
return (obj instanceof Component) && this.id == ((Component) obj).id;
}
Modified:
trunk/examples/src/net/sourceforge/stripes/examples/bugzooky/biz/Person.java
===================================================================
---
trunk/examples/src/net/sourceforge/stripes/examples/bugzooky/biz/Person.java
2007-05-15 17:24:13 UTC (rev 544)
+++
trunk/examples/src/net/sourceforge/stripes/examples/bugzooky/biz/Person.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -66,6 +66,7 @@
}
/** Equality is determined to be when the ID numbers match. */
+ @Override
public boolean equals(Object obj) {
return (obj instanceof Person) && this.id == ((Person) obj).id;
}
Modified:
trunk/stripes/src/net/sourceforge/stripes/action/ActionBeanContext.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/action/ActionBeanContext.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/action/ActionBeanContext.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -237,6 +237,7 @@
* Returns a String with the name of the event for which the instance
holds context, and
* the set of validation errors, if any.
*/
+ @Override
public String toString() {
return "ActionBeanContext{" +
"eventName='" + eventName + "'" +
Modified: trunk/stripes/src/net/sourceforge/stripes/action/FileBean.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/action/FileBean.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/action/FileBean.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -235,6 +235,7 @@
/**
* Returns the name of the file and the content type in a String format.
*/
+ @Override
public String toString() {
return "FileBean{" +
"contentType='" + contentType + "'" +
Modified:
trunk/stripes/src/net/sourceforge/stripes/action/LocalizableMessage.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/action/LocalizableMessage.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/action/LocalizableMessage.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -66,6 +66,7 @@
* @param o an instance of LocalizableMessage or subclass thereof
* @return true if the two messages would produce the same user message,
false otherwise
*/
+ @Override
public boolean equals(Object o) {
if (this == o) {
return true;
@@ -87,6 +88,7 @@
}
/** Generated hashCode method. */
+ @Override
public int hashCode() {
int result = super.hashCode();
result = 29 * result + (messageKey != null ? messageKey.hashCode() :
0);
Modified: trunk/stripes/src/net/sourceforge/stripes/action/OnwardResolution.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/action/OnwardResolution.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/action/OnwardResolution.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -82,6 +82,7 @@
* Method that will work for this class and subclasses; returns a String
containing the
* class name, and the path to which it will send the user.
*/
+ @Override
public String toString() {
return getClass().getSimpleName() + "{" +
"path='" + path + "'" +
Modified: trunk/stripes/src/net/sourceforge/stripes/action/SimpleMessage.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/action/SimpleMessage.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/action/SimpleMessage.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -128,6 +128,7 @@
* @param o another object that is a SimpleMessage or subclass thereof
* @return true if the two objects will generate the same user message,
false otherwise
*/
+ @Override
public boolean equals(Object o) {
if (this == o) {
return true;
@@ -149,6 +150,7 @@
}
/** Generated hashcode method. */
+ @Override
public int hashCode() {
return (message != null ? message.hashCode() : 0);
}
Modified:
trunk/stripes/src/net/sourceforge/stripes/controller/DefaultActionBeanPropertyBinder.java
===================================================================
---
trunk/stripes/src/net/sourceforge/stripes/controller/DefaultActionBeanPropertyBinder.java
2007-05-15 17:24:13 UTC (rev 544)
+++
trunk/stripes/src/net/sourceforge/stripes/controller/DefaultActionBeanPropertyBinder.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -928,6 +928,7 @@
* Adds the value to the map, along the way checking to see if there are
any
* non-null values for the row so far.
*/
+ @Override
public String[] put(ParameterName key, String[] values) {
if (!hasNonEmptyValues) {
hasNonEmptyValues = (values != null) &&
Modified:
trunk/stripes/src/net/sourceforge/stripes/controller/DispatcherServlet.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/controller/DispatcherServlet.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/controller/DispatcherServlet.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -59,6 +59,7 @@
private static final Log log = Log.getInstance(DispatcherServlet.class);
/** Implemented as a simple call to doPost(request, response). */
+ @Override
protected void doGet(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, IOException {
doPost(request, response);
@@ -84,6 +85,7 @@
* @param response the HttpServletResponse paired to the request
* @throws ServletException thrown when the system fails to process the
request in any way
*/
+ @Override
protected void doPost(final HttpServletRequest request, final
HttpServletResponse response)
throws ServletException {
Modified:
trunk/stripes/src/net/sourceforge/stripes/controller/ParameterName.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/controller/ParameterName.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/controller/ParameterName.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -104,12 +104,14 @@
* see if we can short circuit, and then checks for equality of the name
attribute for
* a real test.
*/
+ @Override
public boolean equals(Object obj) {
return (obj instanceof ParameterName) &&
(this == obj || compareTo((ParameterName) obj) == 0);
}
/** Simple hashcode method based on the name of the parameter. */
+ @Override
public int hashCode() {
return this.name.hashCode();
}
@@ -119,6 +121,7 @@
* the most useful thing to see in log messages, which is the only place
toString will
* be used.
*/
+ @Override
public String toString() {
return this.name;
}
Modified:
trunk/stripes/src/net/sourceforge/stripes/controller/StripesRequestWrapper.java
===================================================================
---
trunk/stripes/src/net/sourceforge/stripes/controller/StripesRequestWrapper.java
2007-05-15 17:24:13 UTC (rev 544)
+++
trunk/stripes/src/net/sourceforge/stripes/controller/StripesRequestWrapper.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -125,6 +125,7 @@
* the request is multipart then the information is sourced from the
parsed multipart object
* otherwise it is just pulled out of the request in the usual manner.
*/
+ @Override
@SuppressWarnings("unchecked")
public Enumeration<String> getParameterNames() {
if ( isMultipart() ) {
@@ -142,6 +143,7 @@
* HttpServletRequest.getParameterValues(String). Values for file uploads
cannot be retrieved
* in this way (though parameters sent along with file uploads can).
*/
+ @Override
public String[] getParameterValues(String name) {
if ( isMultipart() ) {
return this.multipart.getParameterValues(name);
@@ -155,6 +157,7 @@
* Retrieves the first value of the specified parameter from the request.
If the parameter was
* not sent, null will be returned.
*/
+ @Override
public String getParameter(String name) {
String[] values = getParameterValues(name);
if (values != null && values.length > 0) {
@@ -169,6 +172,7 @@
/**
* Returns a map of parameter name and values.
*/
+ @Override
@SuppressWarnings("unchecked")
public Map<String,String[]> getParameterMap() {
if (isMultipart()) {
@@ -192,6 +196,7 @@
* @return a Locale object representing the chosen locale for the request.
* @see net.sourceforge.stripes.localization.LocalePicker
*/
+ @Override
public Locale getLocale() {
return locale;
}
@@ -200,6 +205,7 @@
* Returns a single element enumeration containing the selected Locale
for this request.
* @see net.sourceforge.stripes.localization.LocalePicker
*/
+ @Override
public Enumeration<Locale> getLocales() {
List<Locale> list = new ArrayList<Locale>();
list.add(this.locale);
Modified:
trunk/stripes/src/net/sourceforge/stripes/integration/spring/SpringAwareActionResolver.java
===================================================================
---
trunk/stripes/src/net/sourceforge/stripes/integration/spring/SpringAwareActionResolver.java
2007-05-15 17:24:13 UTC (rev 544)
+++
trunk/stripes/src/net/sourceforge/stripes/integration/spring/SpringAwareActionResolver.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -48,6 +48,7 @@
* @return the newly instantiated ActionBean
* @throws Exception if configured SpringBeans cannot be located, or are
ambiguous
*/
+ @Override
protected ActionBean makeNewActionBean(Class<? extends ActionBean> type,
ActionBeanContext context) throws
Exception {
Modified:
trunk/stripes/src/net/sourceforge/stripes/mock/MockServletOutputStream.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/mock/MockServletOutputStream.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/mock/MockServletOutputStream.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -29,6 +29,7 @@
private ByteArrayOutputStream out = new ByteArrayOutputStream();
/** Pass through method calls ByteArrayOutputStream.write(int b). */
+ @Override
public void write(int b) throws IOException { out.write(b); }
/** Returns the array of bytes that have been written to the output
stream. */
Modified:
trunk/stripes/src/net/sourceforge/stripes/tag/BeanFirstPopulationStrategy.java
===================================================================
---
trunk/stripes/src/net/sourceforge/stripes/tag/BeanFirstPopulationStrategy.java
2007-05-15 17:24:13 UTC (rev 544)
+++
trunk/stripes/src/net/sourceforge/stripes/tag/BeanFirstPopulationStrategy.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -45,6 +45,7 @@
* @return Object will be one of null, a single Object or an Array of
Objects depending upon
* what was submitted in the prior request, and what is declared
on the ActionBean
*/
+ @Override
public Object getValue(InputTagSupport tag) throws StripesJspException {
// If the specific tag is in error, grab the values from the request
if (tag.hasErrors()) {
Modified: trunk/stripes/src/net/sourceforge/stripes/tag/ErrorsFooterTag.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/ErrorsFooterTag.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/ErrorsFooterTag.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -26,6 +26,7 @@
*/
public class ErrorsFooterTag extends HtmlTagSupport implements Tag {
+ @Override
public int doStartTag() throws JspException {
ErrorsTag errorsTag = getParentTag(ErrorsTag.class);
@@ -35,6 +36,7 @@
return SKIP_BODY;
}
+ @Override
public int doEndTag() throws JspException {
return EVAL_PAGE;
}
Modified: trunk/stripes/src/net/sourceforge/stripes/tag/ErrorsHeaderTag.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/ErrorsHeaderTag.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/ErrorsHeaderTag.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -26,6 +26,7 @@
*/
public class ErrorsHeaderTag extends HtmlTagSupport implements Tag {
+ @Override
public int doStartTag() throws JspException {
ErrorsTag errorsTag = getParentTag(ErrorsTag.class);
if (errorsTag.isFirst())
@@ -34,6 +35,7 @@
return SKIP_BODY;
}
+ @Override
public int doEndTag() throws JspException {
return EVAL_PAGE;
}
Modified: trunk/stripes/src/net/sourceforge/stripes/tag/ErrorsTag.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/ErrorsTag.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/ErrorsTag.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -203,6 +203,7 @@
* @return SKIP_BODY if the errors are not to be output, or there aren't
any<br/>
* EVAL_BODY_TAG if there are errors to display
*/
+ @Override
public int doStartTag() throws JspException {
HttpServletRequest request = (HttpServletRequest)
getPageContext().getRequest();
ActionBean mainBean = (ActionBean)
request.getAttribute(StripesConstants.REQ_ATTR_ACTION_BEAN);
@@ -314,6 +315,7 @@
* @return EVAL_PAGE always
* @throws JspException
*/
+ @Override
public int doEndTag() throws JspException {
try {
JspWriter writer = getPageContext().getOut();
Modified: trunk/stripes/src/net/sourceforge/stripes/tag/ErrorsTagExtraInfo.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/ErrorsTagExtraInfo.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/ErrorsTagExtraInfo.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -29,6 +29,7 @@
public class ErrorsTagExtraInfo extends TagExtraInfo {
/** Returns an array of length two, for the variables exposed. */
+ @Override
public VariableInfo[] getVariableInfo(TagData data) {
VariableInfo[] scriptVars = new VariableInfo[2];
Modified: trunk/stripes/src/net/sourceforge/stripes/tag/FormTag.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/FormTag.java 2007-05-15
17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/FormTag.java 2007-05-18
23:59:57 UTC (rev 545)
@@ -159,6 +159,7 @@
* Does sanity checks and returns EVAL_BODY_BUFFERED. Everything else of
interest happens in
* doEndTag.
*/
+ @Override
public int doStartTag() throws JspException {
if (this.actionWithoutContext == null) {
throw new StripesJspException("The form tag attributes 'beanClass'
and 'action' "
@@ -190,6 +191,7 @@
* necessary. A prime example of this is the InputFileTag, which needs to
ensure that the form
* method is POST and the enctype is correct.</p>
*/
+ @Override
public int doEndTag() throws JspException {
try {
// Default the method to post
Modified: trunk/stripes/src/net/sourceforge/stripes/tag/HtmlTagSupport.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/HtmlTagSupport.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/HtmlTagSupport.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -85,6 +85,7 @@
}
/** Release method to clean up the state of the tag ready for re-use. */
+ @Override
public void release() {
this.pageContext = null;
this.parentTag = null;
@@ -229,6 +230,7 @@
* Returns a String representation of the class, including the map of
attributes that
* are set on the tag, the toString of its parent tag, and the pageContext.
*/
+ @Override
public String toString() {
return getClass().getSimpleName()+ "{" +
"attributes=" + attributes +
Modified:
trunk/stripes/src/net/sourceforge/stripes/tag/HtmlTagSupportBeanInfo.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/HtmlTagSupportBeanInfo.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/HtmlTagSupportBeanInfo.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -39,6 +39,7 @@
/**
* Generates a simple set of PropertyDescriptors for the HtmlTagSupport
class.
*/
+ @Override
public PropertyDescriptor[] getPropertyDescriptors() {
try {
List<PropertyDescriptor> descriptors = new
ArrayList<PropertyDescriptor>();
Modified: trunk/stripes/src/net/sourceforge/stripes/tag/IndividualErrorTag.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/IndividualErrorTag.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/IndividualErrorTag.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -40,6 +40,7 @@
* @return SKIP_BODY always
* @throws JspException
*/
+ @Override
public int doStartTag() throws JspException {
return SKIP_BODY;
}
@@ -49,6 +50,7 @@
*
* @return EVAL_PAGE in all circumstances
*/
+ @Override
public int doEndTag() throws JspException {
Locale locale = getPageContext().getRequest().getLocale();
Modified:
trunk/stripes/src/net/sourceforge/stripes/tag/InputButtonSupportTag.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/InputButtonSupportTag.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/InputButtonSupportTag.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -46,6 +46,7 @@
* Does nothing.
* @return EVAL_BODY_BUFFERED in all cases.
*/
+ @Override
public int doStartInputTag() throws JspException {
return EVAL_BODY_BUFFERED;
}
@@ -67,6 +68,7 @@
* @return EVAL_PAGE in all cases.
* @throws javax.servlet.jsp.JspException if output cannot be written.
*/
+ @Override
public int doEndInputTag() throws JspException {
// Find out if we have a value from the PopulationStrategy
String body = getBodyContentAsString();
Modified: trunk/stripes/src/net/sourceforge/stripes/tag/InputCheckBoxTag.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/InputCheckBoxTag.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/InputCheckBoxTag.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -71,6 +71,7 @@
/** Does nothing. */
+ @Override
public int doStartInputTag() throws JspException {
return EVAL_BODY_BUFFERED;
}
@@ -89,6 +90,7 @@
* Returns the body of the tag if it is present and not empty, otherwise
returns
* the value of the 'checked' attribute.
*/
+ @Override
public Object getValueOnPage() {
Object value = getBodyContentAsString();
if (value != null) {
@@ -107,6 +109,7 @@
* @throws JspException if the checkbox is not contained inside a stripes
InputFormTag, or has
* problems writing to the output.
*/
+ @Override
public int doEndInputTag() throws JspException {
// Find out if we have a value from the PopulationStrategy
Object checked = getOverrideValueOrValues();
Modified: trunk/stripes/src/net/sourceforge/stripes/tag/InputFileTag.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/InputFileTag.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/InputFileTag.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -52,6 +52,7 @@
* @return SKIP_BODY because the tag does not allow a body
* @throws JspException if the enclosing form tag cannot be located
*/
+ @Override
public int doStartInputTag() throws JspException {
// Make sure the form is setup to do file uploads
FormTag form = getParentFormTag();
@@ -67,6 +68,7 @@
* @return EVAL_PAGE is always returned
* @throws JspException if a problem is encountered writing to the JSP
page's output
*/
+ @Override
public int doEndInputTag() throws JspException {
writeSingletonTag(getPageContext().getOut(), "input");
return EVAL_PAGE;
Modified: trunk/stripes/src/net/sourceforge/stripes/tag/InputHiddenTag.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/InputHiddenTag.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/InputHiddenTag.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -66,6 +66,7 @@
*
* @return EVAL_BODY_BUFFERED to always buffer the body (so it can be used
as the value)
*/
+ @Override
public int doStartInputTag() throws JspException {
return EVAL_BODY_BUFFERED;
}
@@ -90,6 +91,7 @@
* @return EVAL_PAGE in all cases.
* @throws JspException if the enclosing form tag cannot be found, or
output cannot be written.
*/
+ @Override
public int doEndInputTag() throws JspException {
// Find out if we have a value from the PopulationStrategy
Object valueOrValues = getOverrideValueOrValues();
Modified: trunk/stripes/src/net/sourceforge/stripes/tag/InputImageTag.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/InputImageTag.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/InputImageTag.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -58,6 +58,7 @@
* Does nothing.
* @return SKIP_BODY in all cases
*/
+ @Override
public int doStartInputTag() throws JspException { return SKIP_BODY; }
/**
@@ -67,6 +68,7 @@
*
* @return EVAL_PAGE always
*/
+ @Override
public int doEndInputTag() throws JspException {
String name = getAttributes().get("name");
Locale locale = getPageContext().getRequest().getLocale();
Modified: trunk/stripes/src/net/sourceforge/stripes/tag/InputLabelTag.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/InputLabelTag.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/InputLabelTag.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -64,6 +64,7 @@
* the JSP container as it also tracks whether or not the container has
set the name, in
* order to correctly handle pooling.
*/
+ @Override
public void setName(String name) {
super.setName(name);
this.nameSet = true;
@@ -73,6 +74,7 @@
* Does nothing.
* @return EVAL_BODY_BUFFERED in all cases.
*/
+ @Override
public int doStartInputTag() throws JspException {
return EVAL_BODY_BUFFERED;
}
@@ -93,6 +95,7 @@
* @return EVAL_PAGE in all cases.
* @throws JspException if an IOException is encountered writing to the
output stream.
*/
+ @Override
public int doEndInputTag() throws JspException {
try {
String label = getLocalizedFieldName();
@@ -125,12 +128,14 @@
}
/** Overridden to do nothing, since a label isn't really a form field. */
+ @Override
protected void registerWithParentForm() throws StripesJspException { }
/**
* Wraps the parent loadErrors() to supress exceptions when the label is
outside of a
* stripes form tag.
*/
+ @Override
protected void loadErrors() {
try {
super.loadErrors();
Modified: trunk/stripes/src/net/sourceforge/stripes/tag/InputOptionTag.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/InputOptionTag.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/InputOptionTag.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -71,6 +71,7 @@
* Does nothing.
* @return EVAL_BODY_BUFFERED in all cases.
*/
+ @Override
public int doStartInputTag() throws JspException {
return EVAL_BODY_BUFFERED;
}
@@ -95,6 +96,7 @@
* @throws JspException if the option is not contained inside an
InputSelectTag or output
* cannot be written.
*/
+ @Override
public int doEndInputTag() throws JspException {
// Find our mandatory enclosing select tag
InputSelectTag selectTag = getParentTag(InputSelectTag.class);
@@ -148,6 +150,7 @@
* the form tag. This is done because options are not standalone input
tags, but
* always part of a select tag (which gets registered).
*/
+ @Override
protected void registerWithParentForm() throws StripesJspException {
// Do nothing, options are not standalone fields and should not
register
}
Modified:
trunk/stripes/src/net/sourceforge/stripes/tag/InputOptionsCollectionTag.java
===================================================================
---
trunk/stripes/src/net/sourceforge/stripes/tag/InputOptionsCollectionTag.java
2007-05-15 17:24:13 UTC (rev 544)
+++
trunk/stripes/src/net/sourceforge/stripes/tag/InputOptionsCollectionTag.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -196,6 +196,7 @@
* @throws JspException if either the label or value attributes specify
properties that are
* not present on the beans in the collection
*/
+ @Override
public int doStartTag() throws JspException {
if (this.collection == null)
return SKIP_BODY;
@@ -245,6 +246,7 @@
*
* @return EVAL_PAGE in all cases.
*/
+ @Override
public int doEndTag() throws JspException {
// Determine if we're going to be sorting the collection
List<Entry> sortedEntries = new LinkedList<Entry>(this.entries);
Modified:
trunk/stripes/src/net/sourceforge/stripes/tag/InputOptionsEnumerationTag.java
===================================================================
---
trunk/stripes/src/net/sourceforge/stripes/tag/InputOptionsEnumerationTag.java
2007-05-15 17:24:13 UTC (rev 544)
+++
trunk/stripes/src/net/sourceforge/stripes/tag/InputOptionsEnumerationTag.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -78,6 +78,7 @@
* @throws JspException if the class name supplied is not a valid class,
or cannot be cast
* to Class<Enum>.
*/
+ @Override
@SuppressWarnings("unchecked")
public int doStartTag() throws JspException {
Class<Enum> clazz = null;
Modified: trunk/stripes/src/net/sourceforge/stripes/tag/InputPasswordTag.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/InputPasswordTag.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/InputPasswordTag.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -44,6 +44,7 @@
getAttributes().put("type", "password");
}
+ @Override
public int doEndInputTag() throws JspException {
if (this.repopulate) {
// If repopulate is set, delegate to the parent input text tag
Modified: trunk/stripes/src/net/sourceforge/stripes/tag/InputRadioButtonTag.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/InputRadioButtonTag.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/InputRadioButtonTag.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -66,6 +66,7 @@
* Sets the input tag type to "radio".
* @return EVAL_BODY_BUFFERED in all cases.
*/
+ @Override
public int doStartInputTag() throws JspException {
return EVAL_BODY_BUFFERED;
}
@@ -85,6 +86,7 @@
* Returns the body of the tag if it is present and not empty, otherwise
returns
* the value of the 'checked' attribute.
*/
+ @Override
public Object getValueOnPage() {
String body = getBodyContentAsString();
if (body != null) {
@@ -102,6 +104,7 @@
* @return EVAL_PAGE in all cases.
* @throws JspException if the parent form tag cannot be found, or output
cannot be written.
*/
+ @Override
public int doEndInputTag() throws JspException {
Object actualChecked = getSingleOverrideValue();
String formattedValue = format(this.value);
Modified: trunk/stripes/src/net/sourceforge/stripes/tag/InputSelectTag.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/InputSelectTag.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/InputSelectTag.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -119,6 +119,7 @@
* @return EVAL_BODY_INCLUDE in all cases
* @throws JspException if the enclosing form tag cannot be found or
output cannot be written
*/
+ @Override
public int doStartInputTag() throws JspException {
writeOpenTag(getPageContext().getOut(), "select");
Object override = getOverrideValueOrValues();
@@ -144,6 +145,7 @@
* @return EVAL_PAGE in all cases
* @throws JspException if output cannot be written.
*/
+ @Override
public int doEndInputTag() throws JspException {
writeCloseTag(getPageContext().getOut(), "select");
this.selectedValueOrValues = this.value; // reset incase the tag is
reused
@@ -151,6 +153,7 @@
}
/** Releases the discovered selected values and then calls
super-release(). */
+ @Override
public void release() {
this.selectedValueOrValues = null;
super.release();
Modified: trunk/stripes/src/net/sourceforge/stripes/tag/InputTagSupport.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/InputTagSupport.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/InputTagSupport.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -308,6 +308,7 @@
*
* @return int the value returned by the child class from doStartInputTag()
*/
+ @Override
public final int doStartTag() throws JspException {
getTagStack().push(this);
registerWithParentForm();
@@ -340,6 +341,7 @@
*
* @return int the value returned by the child class from doStartInputTag()
*/
+ @Override
public final int doEndTag() throws JspException {
// Wrap in a try/finally because a custom error renderer could throw an
// exception, and some containers in their infinite wisdom continue to
Modified: trunk/stripes/src/net/sourceforge/stripes/tag/InputTextAreaTag.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/InputTextAreaTag.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/InputTextAreaTag.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -61,6 +61,7 @@
* Does nothing.
* @return EVAL_BODY_BUFFERED in all cases.
*/
+ @Override
public int doStartInputTag() throws JspException {
return EVAL_BODY_BUFFERED;
}
@@ -84,6 +85,7 @@
* @return EVAL_PAGE in all cases.
* @throws JspException if the enclosing form tag cannot be found, or
output cannot be written.
*/
+ @Override
public int doEndInputTag() throws JspException {
try {
// Find out if we have a value from the PopulationStrategy
Modified: trunk/stripes/src/net/sourceforge/stripes/tag/InputTextTag.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/InputTextTag.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/InputTextTag.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -58,6 +58,7 @@
* Sets type input tags type to "text".
* @return EVAL_BODY_BUFFERED in all cases.
*/
+ @Override
public int doStartInputTag() throws JspException {
return EVAL_BODY_BUFFERED;
}
@@ -80,6 +81,7 @@
* @return EVAL_PAGE in all cases.
* @throws JspException if the enclosing form tag cannot be found, or
output cannot be written.
*/
+ @Override
public int doEndInputTag() throws JspException {
// Find out if we have a value from the PopulationStrategy
Object value = getSingleOverrideValue();
Modified: trunk/stripes/src/net/sourceforge/stripes/tag/LinkTag.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/LinkTag.java 2007-05-15
17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/LinkTag.java 2007-05-18
23:59:57 UTC (rev 545)
@@ -36,6 +36,7 @@
* Does nothing.
* @return EVAL_BODY_BUFFERED in all cases
*/
+ @Override
public int doStartTag() throws JspException {
return EVAL_BODY_BUFFERED;
}
@@ -58,6 +59,7 @@
* @return EVAL_PAGE in all cases
* @throws JspException
*/
+ @Override
public int doEndTag() throws JspException {
try {
set("href", buildUrl());
Modified: trunk/stripes/src/net/sourceforge/stripes/tag/MessagesTag.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/MessagesTag.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/MessagesTag.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -76,6 +76,7 @@
* Does nothing, all processing is performed in doEndTag().
* @return SKIP_BODY in all cases.
*/
+ @Override
public int doStartTag() throws JspException {
return SKIP_BODY;
}
@@ -84,6 +85,7 @@
* Outputs the set of messages approprate for this tag.
* @return EVAL_PAGE always
*/
+ @Override
public int doEndTag() throws JspException {
try {
List<Message> messages = getMessages();
Modified: trunk/stripes/src/net/sourceforge/stripes/tag/UrlTag.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/UrlTag.java 2007-05-15
17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/UrlTag.java 2007-05-18
23:59:57 UTC (rev 545)
@@ -40,6 +40,7 @@
* Does nothing.
* @return [EMAIL PROTECTED] #EVAL_BODY_BUFFERED} in all cases.
*/
+ @Override
public int doStartTag() throws JspException { return EVAL_BODY_BUFFERED; }
/** Does nothing. */
@@ -58,6 +59,7 @@
* @return [EMAIL PROTECTED] #EVAL_PAGE} in all cases.
* @throws JspException if the output stream cannot be written to.
*/
+ @Override
public int doEndTag() throws JspException {
String url = buildUrl();
Modified: trunk/stripes/src/net/sourceforge/stripes/tag/UseActionBeanTag.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/UseActionBeanTag.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/UseActionBeanTag.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -80,6 +80,7 @@
* @return SKIP_BODY in all cases.
* @throws JspException if the ActionBean could not be instantiate and
executed
*/
+ @Override
public int doStartTag() throws JspException {
// Check to see if the action bean already exists
ActionBean actionBean = (ActionBean)
getPageContext().findAttribute(binding);
@@ -184,6 +185,7 @@
* Does nothing.
* @return EVAL_PAGE in all cases.
*/
+ @Override
public int doEndTag() { return EVAL_PAGE; }
/**
Modified: trunk/stripes/src/net/sourceforge/stripes/tag/WizardFieldsTag.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/WizardFieldsTag.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/WizardFieldsTag.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -49,6 +49,7 @@
public boolean isCurrentFormOnly() { return currentFormOnly; }
/** Skips over the body because there shouldn't be one. */
+ @Override
public int doStartTag() throws JspException {
return SKIP_BODY;
}
@@ -57,6 +58,7 @@
* Performs the main work of the tag, as described in the class level
javadoc.
* @return EVAL_PAGE in all cases.
*/
+ @Override
@SuppressWarnings("unchecked")
public int doEndTag() throws JspException {
// Figure out the list of parameters we should not include
Modified:
trunk/stripes/src/net/sourceforge/stripes/tag/layout/LayoutComponentTag.java
===================================================================
---
trunk/stripes/src/net/sourceforge/stripes/tag/layout/LayoutComponentTag.java
2007-05-15 17:24:13 UTC (rev 544)
+++
trunk/stripes/src/net/sourceforge/stripes/tag/layout/LayoutComponentTag.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -52,6 +52,7 @@
*
* @return EVAL_BODY_BUFFERED, EVAL_BODY_INCLUDE or SKIP_BODY as described
above.
*/
+ @Override
public int doStartTag() throws JspException {
this.definitionTag = getParentTag(LayoutDefinitionTag.class);
this.renderTag = getParentTag(LayoutRenderTag.class);
@@ -82,6 +83,7 @@
*
* @return EVAL_PAGE in all cases.
*/
+ @Override
public int doEndTag() throws JspException {
if (this.renderTag != null && this.bodyContent != null) {
this.renderTag.addComponent(this.name,
this.bodyContent.getString());
Modified:
trunk/stripes/src/net/sourceforge/stripes/tag/layout/LayoutContext.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/layout/LayoutContext.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/layout/LayoutContext.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -43,6 +43,7 @@
}
/** To String implementation the parameters, and the component names. */
+ @Override
public String toString() {
return "LayoutContext{" +
"component names=" + components.keySet() +
Modified:
trunk/stripes/src/net/sourceforge/stripes/tag/layout/LayoutDefinitionTag.java
===================================================================
---
trunk/stripes/src/net/sourceforge/stripes/tag/layout/LayoutDefinitionTag.java
2007-05-15 17:24:13 UTC (rev 544)
+++
trunk/stripes/src/net/sourceforge/stripes/tag/layout/LayoutDefinitionTag.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -48,6 +48,7 @@
*
* @return EVAL_BODY_INCLUDE in all cases.
*/
+ @Override
@SuppressWarnings("unchecked")
public int doStartTag() throws JspException {
// Since the layout-render tag pushes a new writer onto the stack, we
can clear the
@@ -86,6 +87,7 @@
* Causes page evaluation to end once the end of the layout definition is
reached.
* @return SKIP_PAGE in all cases
*/
+ @Override
public int doEndTag() throws JspException {
return SKIP_PAGE;
}
Modified:
trunk/stripes/src/net/sourceforge/stripes/tag/layout/LayoutRenderTag.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/layout/LayoutRenderTag.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/layout/LayoutRenderTag.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -64,6 +64,7 @@
*
* @return EVAL_BODY_BUFFERED in all cases
*/
+ @Override
public int doStartTag() throws JspException {
pushPageContextAttributes(this.context.getParameters());
return EVAL_BODY_BUFFERED;
@@ -90,6 +91,7 @@
* @return EVAL_PAGE in all cases.
* @throws JspException if any exceptions are encountered processing the
request
*/
+ @Override
@SuppressWarnings("unchecked")
public int doEndTag() throws JspException {
try {
Modified: trunk/stripes/src/net/sourceforge/stripes/util/bean/Node.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/util/bean/Node.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/util/bean/Node.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -70,5 +70,6 @@
/** Simple toString that returns the text that constructed this node. */
+ @Override
public String toString() { return stringValue; }
}
Modified:
trunk/stripes/src/net/sourceforge/stripes/validation/BigDecimalTypeConverter.java
===================================================================
---
trunk/stripes/src/net/sourceforge/stripes/validation/BigDecimalTypeConverter.java
2007-05-15 17:24:13 UTC (rev 544)
+++
trunk/stripes/src/net/sourceforge/stripes/validation/BigDecimalTypeConverter.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -36,6 +36,7 @@
* to a decimal format and ensures that a BigDecimal is parsed instead of
a Long or
* Double.
*/
+ @Override
protected NumberFormat[] getNumberFormats() {
NumberFormat[] formats = super.getNumberFormats();
for (NumberFormat format : formats) {
Modified:
trunk/stripes/src/net/sourceforge/stripes/validation/BigIntegerTypeConverter.java
===================================================================
---
trunk/stripes/src/net/sourceforge/stripes/validation/BigIntegerTypeConverter.java
2007-05-15 17:24:13 UTC (rev 544)
+++
trunk/stripes/src/net/sourceforge/stripes/validation/BigIntegerTypeConverter.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -37,6 +37,7 @@
* to a decimal format and ensures that a BigDecimal is parsed instead of
a Long or
* Double.
*/
+ @Override
protected NumberFormat[] getNumberFormats() {
NumberFormat[] formats = super.getNumberFormats();
for (NumberFormat format : formats) {
Modified:
trunk/stripes/src/net/sourceforge/stripes/validation/LocalizableError.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/validation/LocalizableError.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/validation/LocalizableError.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -98,6 +98,7 @@
}
/** Generated equals method that compares each field and super.equals(). */
+ @Override
public boolean equals(Object o) {
if (this == o) {
return true;
@@ -119,6 +120,7 @@
}
/** Generated hashCode method. */
+ @Override
public int hashCode() {
int result = super.hashCode();
result = 29 * result + (messageKey != null ? messageKey.hashCode() :
0);
Modified:
trunk/stripes/src/net/sourceforge/stripes/validation/ScopedLocalizableError.java
===================================================================
---
trunk/stripes/src/net/sourceforge/stripes/validation/ScopedLocalizableError.java
2007-05-15 17:24:13 UTC (rev 544)
+++
trunk/stripes/src/net/sourceforge/stripes/validation/ScopedLocalizableError.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -126,6 +126,7 @@
}
/** Generated equals method that checks all fields and super.equals(). */
+ @Override
public boolean equals(Object o) {
if (this == o) {
return true;
@@ -150,6 +151,7 @@
}
/** Generated hashCode() method. */
+ @Override
public int hashCode() {
int result = super.hashCode();
result = 29 * result + (defaultScope != null ? defaultScope.hashCode()
: 0);
Modified: trunk/stripes/src/net/sourceforge/stripes/validation/SimpleError.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/validation/SimpleError.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/validation/SimpleError.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -92,6 +92,7 @@
* @param locale the locale of the current request
* @return String the message stored under the messageKey supplied
*/
+ @Override
public String getMessage(Locale locale) {
resolveFieldName(locale);
return super.getMessage(locale);
@@ -156,6 +157,7 @@
}
/** Generated equals method that ensures the message, field, parameters
and action path are all equal. */
+ @Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
@@ -170,6 +172,7 @@
}
/** Hashcode based on the message, field name key, action path and
parameters. */
+ @Override
public int hashCode() {
int result = super.hashCode();
result = 29 * result + (fieldNameKey != null ? fieldNameKey.hashCode()
: 0);
Modified:
trunk/stripes/src/net/sourceforge/stripes/validation/ValidationErrors.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/validation/ValidationErrors.java
2007-05-15 17:24:13 UTC (rev 544)
+++ trunk/stripes/src/net/sourceforge/stripes/validation/ValidationErrors.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -107,6 +107,7 @@
* @param errors the list of validation errors for the field
* @return the previous errors for the field, or null if there were none
*/
+ @Override
public List<ValidationError> put(String field, List<ValidationError>
errors) {
String strippedName = new ParameterName(field).getStrippedName();
Modified:
trunk/stripes/src/net/sourceforge/stripes/validation/ValidationMetadata.java
===================================================================
---
trunk/stripes/src/net/sourceforge/stripes/validation/ValidationMetadata.java
2007-05-15 17:24:13 UTC (rev 544)
+++
trunk/stripes/src/net/sourceforge/stripes/validation/ValidationMetadata.java
2007-05-18 23:59:57 UTC (rev 545)
@@ -199,6 +199,7 @@
*
* @return a human readable string form of the metadata
*/
+ @Override
public String toString() {
return "ValidationMetadata{" +
(required ? "required=" + required : "") +
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development