Skip to content

Commit 324bb7f

Browse files
Fixes #437.
1 parent c527e09 commit 324bb7f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## v4.2.0 (unreleased)
44

5+
- structurizr-java: Fixes https://github.com/structurizr/java/issues/437 (Make ComponentFinder.run() not fail on empty Set<DiscoveredComponent>).
56
- structurizr-dsl: Adds support for `iconPosition` on element styles (options are `Top`, `Bottom`, `Left`).
67
- structurizr-dsl: Adds support for defining element and relationship styles for light and dark mode.
78
- structurizr-dsl: Adds a `Bucket` shape.

structurizr-component/src/main/java/com/structurizr/component/ComponentFinder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public Set<Component> run() {
6161
for (ComponentFinderStrategy componentFinderStrategy : componentFinderStrategies) {
6262
Set<DiscoveredComponent> set = componentFinderStrategy.run(typeRepository);
6363
if (set.isEmpty()) {
64-
throw new RuntimeException("No components were found by " + componentFinderStrategy);
64+
log.debug("No components were found by " + componentFinderStrategy);
6565
}
6666
discoveredComponents.addAll(set);
6767
}

0 commit comments

Comments
 (0)