diff --git a/changelog/@unreleased/revert-pr-751.v2.yml b/changelog/@unreleased/revert-pr-751.v2.yml new file mode 100644 index 000000000..f8f3f1426 --- /dev/null +++ b/changelog/@unreleased/revert-pr-751.v2.yml @@ -0,0 +1,5 @@ +type: fix +fix: + description: Do not apply the suggested fixes for `UnusedMethod` and `UnusedVariable` which automaticall remove code with side effects. + links: + - https://github.com/palantir/gradle-baseline/pull/757 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 7ac038e4a..5254c496e 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 @@ -33,9 +33,7 @@ public class BaselineErrorProneExtension { // Built-in checks "ArrayEquals", - "MissingOverride", - "UnusedMethod", - "UnusedVariable"); + "MissingOverride"); private final ListProperty patchChecks;