Skip to content

Bump ErrorProne to latest version#1138

Merged
ob-stripe merged 1 commit intomasterfrom
ob-bump-errorprone
Oct 22, 2020
Merged

Bump ErrorProne to latest version#1138
ob-stripe merged 1 commit intomasterfrom
ob-bump-errorprone

Conversation

@ob-stripe
Copy link
Contributor

r? @richardm-stripe

Bump ErrorProne to latest version, and fix some new warnings:

  • abstract classes should have protected constructors instead of public
  • Date is a bad API that should not be used. I've removed support for it in the encoder entirely since we do not have any Date fields anyway -- all timestamps are declared as Long. If we do decide to use an actual date-time type in the future, it should be Instant or LocalDate rather than Date
  • disable some new warnings that did not exist before and do not play nicely with autogen'd files:
    • InvalidParam is probably never going to be fixable for us. It complains about the usage of {@code canceled_at} in some docstrings for classes that have a canceled field because it uses a heuristic and think the docstring is incorrect. Not a big deal, so let's just disable it and move on.
    • MissingSummary is trivially fixable by adding a summary to the docstring for EventData#getObject (currently defined via an override in autogen)
    • SameNameButDifferent is fixable but would require some work in autogen to use fully-qualified names instead of short names when appropriate. IIRC we already have existing logic for a related case, so it might not be too hard to fix this case as well, but I'll let you decide if it's worth the effort.

@ob-stripe ob-stripe merged commit 650a7c4 into master Oct 22, 2020
@ob-stripe ob-stripe deleted the ob-bump-errorprone branch October 22, 2020 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants