Well you have created one a little unnessisarily. Anything that depends on the exact class type may break. Class names get ugly etc. I don't mind the technique but these are some of the minor side effects.
On Feb 24, 10:42 pm, Marcelo Morales <marcelomorales.n...@gmail.com> wrote: > I am curious. Why do you think an anonymous inner class is a drawback? > > Marcelo > > On Mon, Feb 23, 2009 at 8:42 PM, Peter Becker <peter.becker...@gmail.com> > wrote: > > > I quite like the instance initializers, too. The only drawback is that > > they create anonymous inner classes every time you use one, but > > considering the advantages of better encapsulation and nice scoping of > > the construction block I think the extra $n classes are a small price to > > pay. > > > Peter > > -- > Marcelo Morales --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to javaposse@googlegroups.com To unsubscribe from this group, send email to javaposse+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/javaposse?hl=en -~----------~----~----~----~------~----~------~--~---