Skip to content

Commit 35f968f

Browse files
ViewSet.getViewWithKey() is now public.
1 parent 84a5664 commit 35f968f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
## 1.20.1 (unreleased)
44

55
- `ViewSet.getViews()` now includes all views.
6+
- `ViewSet.getViewWithKey()` is now public.
7+
68
## 1.20.0 (16th February 2023)
79

810
- __Breaking change__: Renamed `com.structurizr.view.View` to `com.structurizr.view.ModelView`.

structurizr-core/src/com/structurizr/view/ViewSet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ private void assertThatTheViewIsNotNull(View view) {
342342
* @param key the key
343343
* @return a View object, or null if a view with the specified key could not be found
344344
*/
345-
View getViewWithKey(String key) {
345+
public View getViewWithKey(String key) {
346346
if (key == null) {
347347
throw new IllegalArgumentException("A key must be specified.");
348348
}

0 commit comments

Comments
 (0)