desruisseaux commented on code in PR #2278:
URL: https://github.com/apache/maven/pull/2278#discussion_r2062727554


##########
impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultSourceRoot.java:
##########
@@ -79,7 +79,12 @@ public DefaultSourceRoot(final Session session, final Path 
baseDir, final Source
         if (value != null) {
             directory = baseDir.resolve(value);
         } else {
-            directory = 
baseDir.resolve("src").resolve(scope.id()).resolve(language.id());
+            var src = baseDir.resolve("src");

Review Comment:
   Right, it was my mistake.
   
   Personally, I sometime use `var` in expressions such as `var x = new Foo()` 
when there is no way for the type to be something else than what we can read on 
the line, and usually refrain to use it in other contexts. I do not know if 
there is a Maven policy.



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