elharo commented on PR #223:
URL: 
https://github.com/apache/maven-jlink-plugin/pull/223#issuecomment-2520537340

   Field injection bypasses constructors and normal object access protection 
and validity constraints. Setter injection makes objects immutable. Guice 
strongly recommends constructor injection where possible:
   
   https://github.com/google/guice/wiki/Injections
   
   It's much safer and easier to reason about.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to