Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promote BoxedPrimitiveEquality and ReferenceEquality #1514

Merged
merged 2 commits into from
Oct 16, 2020

Conversation

iamdanfox
Copy link
Contributor

Before this PR

@Jolyon-S reported in #dev-foundry-infra that a Long == Long snippet of code wasn't flagged by any of our static analysis.

There are existing error-prone checks that can catch this though, but they were just at Warning (which atlasdb didn't opt-in to with -Werror.

After this PR

==COMMIT_MSG==
Error-prone's BoxedPrimitiveEquality and ReferenceEquality checks will now fail the build, as we consider them errors not just warnings.
==COMMIT_MSG==

Possible downsides?

  • Every time we promote checks like this there's the danger of introducing unnecessary friction to developers if there are false positives (or harmless cases). For these two checks though, I don't anticipate there to be lots of false positives, and getting it wrong seems pretty serious.

@changelog-app
Copy link

changelog-app bot commented Oct 16, 2020

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

Error-prone's BoxedPrimitiveEquality and ReferenceEquality checks will now fail the build, as we consider them errors not just warnings.

Check the box to generate changelog(s)

  • Generate changelog entry

@policy-bot policy-bot bot requested a review from ferozco October 16, 2020 12:33
@ferozco
Copy link
Contributor

ferozco commented Oct 16, 2020

👍

@bulldozer-bot bulldozer-bot bot merged commit cb797b7 into develop Oct 16, 2020
@bulldozer-bot bulldozer-bot bot deleted the dfox/promote-two-errorprone-checks branch October 16, 2020 13:10
@svc-autorelease
Copy link
Collaborator

Released 3.43.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants