Return 'this' proposal (original) (raw)
Marek Kozieł develop4lasu at gmail.com
Tue Mar 17 22:16:07 PDT 2009
- Previous message: Return 'this' proposal
- Next message: Return 'this' proposal
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
2009/3/18 Reinier Zwitserloot <reinier at zwitserloot.com>
Joe, [snip]
This modifier is strictly inherited. So:
public abstract class MyBuilder { public this MyBuilder setFoo(int foo) { return this; } }
--Reinier Zwitserloot It's interesting proposition.
I noticed that editor corrected me in wrong way.
It would prevent NFP
should be:
It would prevent NPE (NullPointerException).
-- Pozdrowionka. / Regards. Lasu aka Marek Kozieł
http://lasu2string.blogspot.com/
- Previous message: Return 'this' proposal
- Next message: Return 'this' proposal
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]