RFR: 8344159: Add lint warnings for unnecessary warning suppression

Archie Cobbs acobbs at openjdk.org
Tue Sep 16 20:06:30 UTC 2025


On Tue, 16 Sep 2025 18:58:41 GMT, Joe Darcy <darcy at openjdk.org> wrote:

> Hi @archiecobbs , are there bugs filed to clean the causes of the warnings?

Hi @jddarcy,

At the beginning of this project as a preliminary step I filed a bunch of bugs+PR's to remove unnecessary `@SuppressWarnings` annotations. These were accepted, but they affected every area of the JDK and people kept adding new ones so it was impractical to keep up. The only way to make this cleanup operation "stick" is to fail the build whenever anyone violates it, and of course that requires that this PR be integrated first. If/when that happens I plan to do one final "mop up" round that should finally stick :)

Here is the list of earlier clean up PR's:

* #22906
* #21859 
* #21858 
* #21857 
* #21856 
* #21855
* #21854 
* #21853 
* #21852 
* #21851
* #21850 
* #21844

-------------

PR Comment: https://git.openjdk.org/jdk/pull/25167#issuecomment-3300177821


More information about the serviceability-dev mailing list