Skip to content

Commit

Permalink
ViewSet.getViewWithKey() is now public.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbrowndotje committed Feb 16, 2023
1 parent 84a5664 commit 35f968f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
## 1.20.1 (unreleased)

- `ViewSet.getViews()` now includes all views.
- `ViewSet.getViewWithKey()` is now public.

## 1.20.0 (16th February 2023)

- __Breaking change__: Renamed `com.structurizr.view.View` to `com.structurizr.view.ModelView`.
Expand Down
2 changes: 1 addition & 1 deletion structurizr-core/src/com/structurizr/view/ViewSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ private void assertThatTheViewIsNotNull(View view) {
* @param key the key
* @return a View object, or null if a view with the specified key could not be found
*/
View getViewWithKey(String key) {
public View getViewWithKey(String key) {
if (key == null) {
throw new IllegalArgumentException("A key must be specified.");
}
Expand Down

0 comments on commit 35f968f

Please sign in to comment.