Skip to content

Commit

Permalink
GH-74 - Polishing.
Browse files Browse the repository at this point in the history
  • Loading branch information
odrotbohm committed Nov 17, 2022
1 parent 22993f4 commit 065db76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,13 @@ public ApplicationModuleDependencies getDependencies(ApplicationModules modules,
Assert.notNull(modules, "ApplicationModules must not be null!");
Assert.notNull(type, "DependencyTypes must not be null!");

var foo = getAllModuleDependencies(modules) //
var dependencies = getAllModuleDependencies(modules) //
.filter(it -> type.length == 0 ? true : Arrays.stream(type).anyMatch(it::hasType)) //
.distinct() //
.<ApplicationModuleDependency> flatMap(it -> DefaultApplicationModuleDependency.of(it, modules)) //
.toList();

return ApplicationModuleDependencies.of(foo, modules);
return ApplicationModuleDependencies.of(dependencies, modules);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public boolean containsModuleNamed(String name) {
}

/**
* Returns all {@link DefaultMaterializedDependency} instances as {@link Stream}.
* Returns all {@link ApplicationModuleDependency} instances as {@link Stream}.
*
* @return will never be {@literal null}.
*/
Expand Down

0 comments on commit 065db76

Please sign in to comment.