apache / arrow

Apache Arrow is the universal columnar format and multi-language toolbox for fast data interchange and in-memory analytics
https://arrow.apache.org/
Apache License 2.0
14.54k stars 3.54k forks source link

[Java] ErrorProne Warnings to be considered as Errors #43941

Open vibhatha opened 2 months ago

vibhatha commented 2 months ago

Describe the enhancement requested

Even though we have integrated the ErrorProne module in each module, we still see iterative development cycle introduces more warnings, and to avoid this it would be better to error them so that in the development time these are properly tracked and addressed. This must be done for each module.

Component(s)

Java

vibhatha commented 2 months ago

@lidavidm looking into the available flags we do have the following https://errorprone.info/docs/flags

For instance, the available flags don't seem to have something like an error warning, rather it has -XepAllErrorsAsWarnings. Not sure if we have an option the other way around? But we can do it manually for each category of warnings like -Xep:MissingOverride:ERROR. But this requires making a list of items that may not cover all the angles we hope for. Still needs further investigation...

lidavidm commented 2 months ago

Um, (1) warnings-as-errors is just a javac option (2) my original concern wasn't about the errorprone warnings, it was just about the regular javac deprecation warnings.

vibhatha commented 2 months ago

I see, I have misunderstood it. Either way, I will make the improvements on both fronts as required. And I will investigate about (1) and how to add that.