cstamas commented on code in PR #306:
URL: https://github.com/apache/maven-resolver/pull/306#discussion_r1412878989


##########
maven-resolver-util/src/main/java/org/eclipse/aether/util/graph/selector/ScopeDependencySelector.java:
##########
@@ -82,15 +82,15 @@ public ScopeDependencySelector(String... excluded) {
         this(null, (excluded != null) ? Arrays.asList(excluded) : null);
     }
 
-    private ScopeDependencySelector(boolean transitive, Collection<String> 
included, Collection<String> excluded) {
-        this.transitive = transitive;
+    private ScopeDependencySelector(int depth, Collection<String> included, 
Collection<String> excluded) {
+        this.depth = depth;
         this.included = included;
         this.excluded = excluded;
     }
 
     public boolean selectDependency(Dependency dependency) {
         requireNonNull(dependency, "dependency cannot be null");
-        if (!transitive) {
+        if (depth < 2) {

Review Comment:
   where is this instantiated?



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