You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Viral_Thakkar <Vi...@infosys.com> on 2004/07/15 08:15:27 UTC

final getter/setter methods in actionform and valueobject classes

Hi All,

I was wondering if all the getXXX methods in the Value Objects could be
declared as final.


Regards,
Viral


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: final getter/setter methods in actionform and valueobject classes

Posted by Bill Siggelkow <bi...@bellsouth.net>.
See section of 8.4.3.3 of the Java Language Specification at 
http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html.

There is nothing wrong with declaring them as final; it means that the 
methods cannot be overriden by subclasses.

Viral_Thakkar wrote:
> Hi All,
> 
> I was wondering if all the getXXX methods in the Value Objects could be
> declared as final.
> 
> 
> Regards,
> Viral


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org