Pankraz76 commented on code in PR #2312:
URL: https://github.com/apache/maven/pull/2312#discussion_r2083510194


##########
impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultPluginXmlFactory.java:
##########
@@ -35,93 +27,18 @@
 import org.apache.maven.api.services.xml.XmlReaderRequest;
 import org.apache.maven.api.services.xml.XmlWriterException;
 import org.apache.maven.api.services.xml.XmlWriterRequest;
-import org.apache.maven.plugin.descriptor.io.PluginDescriptorStaxReader;
-import org.apache.maven.plugin.descriptor.io.PluginDescriptorStaxWriter;
-
-import static org.apache.maven.impl.ImplUtils.nonNull;
-import static org.apache.maven.impl.StaxLocation.getLocation;
-import static org.apache.maven.impl.StaxLocation.getMessage;
 
 @Named
 @Singleton
 public class DefaultPluginXmlFactory implements PluginXmlFactory {

Review Comment:
   smell `feature envy` - assuming its supposed to be a factory meaning not 
necessary fulfill worker concern too. Its industry standard to follow [one 
thing only](https://cleancoders.com/episode/clean-code-episode-3) `enforcing 
cohesion, avoiding coupling`.
   
   Following SOC, SRP, and SOLID we could spend dedication, to embrace and 
celebrate the design and integrity of maven.
   
   `one thing, do it well, and do it only` here we have our Oxford comma again 
thanks 
   - https://cleancoders.com/episode/clean-code-episode-3



-- 
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: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to