-
Notifications
You must be signed in to change notification settings - Fork 733
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
PreferJavaTimeOverload fails on AssertJ extensions which handle time #1435
Comments
…loads. Fixes google#1435 Related to google#1377 and f1df86d
…loads. Fixes google#1435 Related to google#1377 and f1df86d
…loads. Fixes google#1435 Related to google#1377 and f1df86d
…hat or assumeThat. Fixes #1437 and #1435 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=284455194
…hat or assumeThat. Fixes #1437 and #1435 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=284455194
In my case, a test implements |
…hat or assumeThat. Fixes google#1437 and google#1435 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=284455194
I think this can be closed now. Please re-open if you'd like additional opt-out heuristics |
Description of the problem / feature request:
PreferJavaTimeOverload fails eroniously on assertj assertion classes which have time overloads, or extend
org.assertj.core.api.Assertions
.Feature requests: what underlying problem are you trying to solve with this feature?
Consider allowing methods named
assertThat
which return subtypes oforg.assertj.core.api.Assert
to pass validation rather than whitelisting onlyorg.assertj.core.api.Assertions.assertThat
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Easiest way to reproduce this is by subclassing Assertions (nonfinal utility class, obviously it's bad practice to extend static utility classes in modern java, but this occurs relatively frequently in the wild).
What version of Error Prone are you using?
2.3.4
Have you found anything relevant by searching the web?
no.
The text was updated successfully, but these errors were encountered: