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


##########
impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/TransformerSupport.java:
##########
@@ -68,9 +68,8 @@ public void transform(MavenProject project, 
RepositorySystemSession session, Pat
     protected static final String SCHEMA_LOCATION_FORMAT = 
"https://maven.apache.org/xsd/maven-%s.xsd";;
 
     protected Model read(Path src) throws IOException, XMLStreamException {
-        MavenStaxReader reader = new MavenStaxReader();
         try (InputStream is = Files.newInputStream(src)) {
-            return reader.read(is, false, null);
+            return new MavenStaxReader().read(is, false, null);

Review Comment:
   nice.



-- 
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