Skip to content

Commit 065db76

Browse files
committed
GH-74 - Polishing.
1 parent 22993f4 commit 065db76

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spring-modulith-core/src/main/java/org/springframework/modulith/model/ApplicationModule.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,13 @@ public ApplicationModuleDependencies getDependencies(ApplicationModules modules,
136136
Assert.notNull(modules, "ApplicationModules must not be null!");
137137
Assert.notNull(type, "DependencyTypes must not be null!");
138138

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

145-
return ApplicationModuleDependencies.of(foo, modules);
145+
return ApplicationModuleDependencies.of(dependencies, modules);
146146
}
147147

148148
/**

spring-modulith-core/src/main/java/org/springframework/modulith/model/ApplicationModuleDependencies.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public boolean containsModuleNamed(String name) {
6767
}
6868

6969
/**
70-
* Returns all {@link DefaultMaterializedDependency} instances as {@link Stream}.
70+
* Returns all {@link ApplicationModuleDependency} instances as {@link Stream}.
7171
*
7272
* @return will never be {@literal null}.
7373
*/

0 commit comments

Comments
 (0)