Skip to content

Commit

Permalink
Setter needs to be public.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbrowndotje committed Jul 28, 2023
1 parent 2c0218b commit c7e33ab
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ subprojects { proj ->

description = 'Structurizr'
group = 'com.structurizr'
version = '1.26.0'
version = '1.26.1'

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## 1.26.0 (28th July 2023)
## 1.26.1 (28th July 2023)

- Adds the ability to specify the workspace visibility (private/public) via the workspace configuration.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ public Visibility getVisibility() {
}

/**
* Gets the visibility of this workspace (private or public).
* Sets the visibility of this workspace (private or public).
*
* @param visibility a Visibility enum
* @param visibility a Visibility enum, or null to indicate that no changes should be made
*/
void setVisibility(Visibility visibility) {
public void setVisibility(Visibility visibility) {
this.visibility = visibility;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ void visibility() {

configuration.setVisibility(Visibility.Private);
assertEquals(Visibility.Private, configuration.getVisibility());

configuration.setVisibility(null);
assertNull(configuration.getVisibility());
}

@Test
Expand Down

0 comments on commit c7e33ab

Please sign in to comment.