JDK-8235721 : Enhance support for SuppressWarnings
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Priority: P4
  • Status: New
  • Resolution: Unresolved
  • Submitted: 2019-12-10
  • Updated: 2021-08-13
Related Reports
Relates :  
Description
Currently, the javac support for SuppressWarnings only supports known warning names.

It might be interesting to cobsider extending the support for additional names, perhaps keeping the names in some collection (i.e. set or map.)

This would facilitate other tools that analyze source code to access these warning strings.

The downside is that we would no longer detect spelling errors.