PROPOSAL: Return 'this' (original) (raw)
Stefan Schulz schulz at e-spirit.de
Thu Mar 26 15:55:50 PDT 2009
- Previous message: PROPOSAL: Return 'this'
- Next message: PROPOSAL: Binary Literals
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Stefan Schulz schrieb:
to using inner classes. This is a variant using an instance initialization block (legal Java code):
Well, to correct myself: not quite legal, as StringBuilder is final (at least the java.lang one). And actually this is one of the restrictions to this approach: can only operate on anonymous class instanciation, i.e., no final classes, no other objects.
Stefan
- Previous message: PROPOSAL: Return 'this'
- Next message: PROPOSAL: Binary Literals
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]