Skip to content

Commit

Permalink
[MRESOLVER-483] Classpath generation bugfix (addendum)
Browse files Browse the repository at this point in the history
A nasty bug creeped in: there are two very same methods
returning same thing "usually", but not always.

Use proper method that is also non-null in reality.
  • Loading branch information
cstamas committed Feb 1, 2024
1 parent 39bc835 commit 23e524a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ static List<DependencyNode> getNodesWithDependencies(List<DependencyNode> nodes)

static List<Dependency> getDependencies(List<DependencyNode> nodes, boolean includeUnresolved) {
return getNodesWithDependencies(nodes).stream()
.filter(d -> includeUnresolved || d.getArtifact().getFile() != null)
.map(DependencyNode::getDependency)
.filter(d -> includeUnresolved || d.getArtifact().getFile() != null)
.collect(toList());
}

Expand Down

0 comments on commit 23e524a

Please sign in to comment.