Remove the @Inject annotations from the fields. You are combining field and constructor injection thus making Guice do the injection twice. I'd suggest you make the fields final then.
Reinhard Am Dienstag, 5. Februar 2013 07:19:45 UTC+1 schrieb Satish Pokhrel: > > Hello Everyone, > > Yesterday, i tested injecting field and constructors using google guice > after checking with* yourKit Java Profiler* i found that* CPU usages* and > *memory* suddenly rises ( Actually i am injecting fields and constructor > of swing components ). For reference i have pasted injected code please > have a look http://pastie.org/6050852 > > P.S I am new to Google Guice, If i am incorrect or getting wrong then > please correct me :) > > Best Regards, > > Satish > -- You received this message because you are subscribed to the Google Groups "google-guice" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-guice?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
