Allow suppression of TypeParameterQualifier violations#5883
Conversation
There are valid use cases within Refaster `@BeforeTemplate` methods.
|
See PicnicSupermarket/error-prone-support#2274 for context. An alternative to this change is #5884, though these PRs are not mutually exclusive. |
|
The history here (internal bug 33253939) seems to be that Turbine rejects I don't know whether Turbine could be made to accept that or not, but apparently we've gotten by OK with a hard rule for many years now. One possible option would be to allow suppression outside of google3: Even though people on the outside might also be using Turbine (presumably in Bazel), we presumably don't care too much if they get an error from Turbine before one from Error Prone—if they're even using Error Prone, too (though that's likely for Bazel users) and if Error Prone + javac beats Turbine (less likely). |
|
(more in #5884 (comment)) |
I think it could support them. I looked at it briefly and it'd be possible but would require some additional plumbing in For some turbine history, it started off being more opinionated about not supporting some corners of the language that added implementation complexity and that there was no compelling reason to use (e.g. NonCanonicalStaticImport is another example of one of those corners that inspired and Error Prone check.) Over time I added support for more edges, especially as third party code ran into them. So if an important open source library starts using this pattern more widely in APIs I think turbine could support it, but I'll probably punt on that until it someone complains :) |
There are valid use cases within Refaster
@BeforeTemplatemethods.