On 11/11/2009, at 4:52 PM, Jeff Schmitz wrote:

Actually it's method I defined in my custom WOComponent that all my other WOComponents inherit from.

   public Session Session() {
           return (Session)super.session();
   }

Don't ask me why I capitalized it.

I _do_ understand why you capitalised it prior to java1.5 (many people used mySession() for such things). But nowadays just do this:

@Override
public Session session() {
        return (Session)super.session();
}

That way you won't have two methods available for auto-completion in your components that do the same thing -- and it's just the right thing to do, not to mention dumping a non-standard naming convention :).

with regards,
--

Lachlan Deck

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to