This rule flags method declarations for
getSuppressed() and addSuppressed(Throwable exception) in
classes that extend java.lang.Throwable.
These methods were added to Throwable in Java 7 and are marked
final
which cannot be overridden.
To solve this problem, either use the methods provided in the Throwable class and remove your overrides
or refactor your code to rename the conflicting methods and their references.
If the class being flagged is part of a JAX-WS service, you might need to remap the exception class so that your renamed methods map to the old WSDL and schema if you want to preserve compatibility with existing clients.
This rule has an automated fix to rename the getSuppressed() and addSuppressed(Throwable exception) methods in classes
that extend java.lang.Throwable to myGetSuppressed and myAddSuppressed(Throwable).
Copy the custom configuration to your application build file to enable the fix automation.
For additional information see: