GH-74 - Polishing.

This commit is contained in:
Oliver Drotbohm
2022-11-18 00:13:30 +01:00
parent 22993f43d9
commit 065db76547
2 changed files with 3 additions and 3 deletions

View File

@@ -136,13 +136,13 @@ public class ApplicationModule {
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);
}
/**

View File

@@ -67,7 +67,7 @@ public class ApplicationModuleDependencies {
}
/**
* Returns all {@link DefaultMaterializedDependency} instances as {@link Stream}.
* Returns all {@link ApplicationModuleDependency} instances as {@link Stream}.
*
* @return will never be {@literal null}.
*/