diff --git a/changelog/@unreleased/pr-1681.v2.yml b/changelog/@unreleased/pr-1681.v2.yml new file mode 100644 index 000000000..0e8915e87 --- /dev/null +++ b/changelog/@unreleased/pr-1681.v2.yml @@ -0,0 +1,5 @@ +type: fix +fix: + description: PreferImmutableStreamExCollections is disabled by default + links: + - https://github.com/palantir/gradle-baseline/pull/1681 diff --git a/gradle-baseline-java/src/main/groovy/com/palantir/baseline/extensions/BaselineErrorProneExtension.java b/gradle-baseline-java/src/main/groovy/com/palantir/baseline/extensions/BaselineErrorProneExtension.java index 57abea4cd..17959a41d 100644 --- a/gradle-baseline-java/src/main/groovy/com/palantir/baseline/extensions/BaselineErrorProneExtension.java +++ b/gradle-baseline-java/src/main/groovy/com/palantir/baseline/extensions/BaselineErrorProneExtension.java @@ -71,7 +71,6 @@ public class BaselineErrorProneExtension { // TODO(ckozak): re-enable pending scala check // "ThrowSpecificity", "UnsafeGaugeRegistration", - "PreferImmutableStreamExCollections", // Built-in checks "ArrayEquals", diff --git a/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineErrorProne.java b/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineErrorProne.java index d71148da8..a959a46cd 100644 --- a/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineErrorProne.java +++ b/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineErrorProne.java @@ -219,7 +219,11 @@ private static void configureErrorProneOptions( : CheckSeverity.OFF; })); - errorProneOptions.disable("AutoCloseableMustBeClosed", "CatchSpecificity", "UnusedVariable"); + errorProneOptions.disable( + "AutoCloseableMustBeClosed", + "CatchSpecificity", + "PreferImmutableStreamExCollections", + "UnusedVariable"); errorProneOptions.error( "EqualsHashCode", "EqualsIncompatibleType",