IntelliJ keeps removing @Inject on constructor generation?

31 views
Skip to first unread message

Kevin Burton

unread,
Oct 20, 2014, 8:37:54 PM10/20/14
to google...@googlegroups.com
IF I need to add a new dependency in a constructor, I just go ahead and add a new final member (so it forces me to add it in the constructor), then I tell intellij to regen a new constructor.

... which it does.

But it either deletes @Inject or puts it BELOW the constructor.

This seems like a trivial problem but it's bitten me like 3-5 times now. 

IS there a workaround?

Brian Pontarelli

unread,
Oct 20, 2014, 10:38:14 PM10/20/14
to google...@googlegroups.com
Don't gen a new constructor. Use the add "constructor parameter" intention instead. It works great. 

-- Brian

Sent from my iPhone 
--
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 google-guice...@googlegroups.com.
To post to this group, send email to google...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-guice.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/1255c62d-fb10-4006-8c1b-aafc8703b59c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages