Skip to content

Commit

Permalink
switch unmodifiable collection filtering off by defualt
Browse files Browse the repository at this point in the history
  • Loading branch information
hcoles committed Feb 13, 2024
1 parent 7be0282 commit f279b24
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ public MutationInterceptor createInterceptor(InterceptorParameters params) {

@Override
public Feature provides() {
return Feature.named("DEFENSIVERETURN")
.withOnByDefault(true)
return Feature.named("funmodifiablecollection")
.withOnByDefault(false)
.withDescription(description());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ public void isOnChain() {
}

@Test
public void isOnByDefault() {
public void isOffByDefault() {
FactoryVerifier.confirmFactory(underTest)
.isOnByDefault();
.isOffByDefault();
}

@Test
public void featureIsCalledLombok() {
public void featureIsCalledUnmodifiableCollection() {
FactoryVerifier.confirmFactory(underTest)
.featureName().isEqualTo("defensivereturn");
.featureName().isEqualTo("funmodifiablecollection");
}

@Test
Expand Down

0 comments on commit f279b24

Please sign in to comment.