Skip to content

Commit b829f4e

Browse files
committed
GH-315 - Polishing.
1 parent d79ade0 commit b829f4e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spring-modulith-runtime/src/main/java/org/springframework/modulith/runtime/autoconfigure/SpringBootApplicationRuntime.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ private boolean computeIsApplicationClass(String fqn, Class<?> applicationClass)
118118
|| getAutoConfigurationPackages().stream().anyMatch(pkg -> fqn.startsWith(pkg));
119119
}
120120

121+
/**
122+
* Looks up the auto configuration packages and caches them to prevent further lookups.
123+
*
124+
* @return will never be {@literal null}.
125+
*/
121126
private List<String> getAutoConfigurationPackages() {
122127

123128
if (resolvedAutoConfigurationPackages == null) {

0 commit comments

Comments
 (0)