Oh, java 7 is nicer?

http://blog.joda.org/2007/08/java-7-self-types_1953.html

2011/8/30 richard emberson <[email protected]>:
> For many months the Scala port of Wicket 1.5 has used self type
> return values (this.type) where appropriate; more than 10 methods
> in Component, more than 5 in MarkupContainer, etc. with all
> tests passing and some code simplification (or, at least, the
> removal of some casts). Ought to work in Java also.
>
> Richard
>
> On 08/29/2011 06:52 PM, Martin Makundi wrote:
>>
>> Hi!
>>
>> Is wicket using self type yet for methods like add(cc) {...; return this;
>> } ?
>>
>>
>> http://calliopesounds.blogspot.com/2010/11/having-java-generic-class-return-type.html
>>
>> **
>> Martin
>>
>
> --
> Quis custodiet ipsos custodes
>

Reply via email to