Hi

2010/4/29 Thiago H. de Paula Figueiredo <[email protected]>

> On Thu, 29 Apr 2010 11:18:55 -0300, Christophe Cordenier <
> [email protected]> wrote:
>
>  Is it not possible to use static inner class with constructors instead of
>> using anonymous inner classes ?
>> Won't this solve a part of the problem ?
>>
>
> I don't think so, as the problem is not how the classes are created, but
> the number of them.
>
>
Yes i have well understood this, it's just that i was remembering a rule
(PMD or Findbug) that told me to turn some of my inner classes to static for
the one who do not access to the enclosing class, maybe it's just to have a
clean coding style.

Also i don't know exactly how the JVM handles anonymous classes, every new
ComponentMethodAdvice() { ... }  ?


> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> and instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
Regards,
Christophe Cordenier.

Developer of wooki @wookicentral.com

Reply via email to