The implementation was removed for several Jakarta Servlet methods

Several Jakarta Servlet methods have been deprecated for removal in Jakarta Servlet 6.0 to align with RFC 6265. In addition, the behavior of these methods has been changed so the setters no longer have any effect, the getComment methods return null, and the getVersion method returns 0. You should remove the usage of these methods from your application.

Deprecated Jakarta Servlet Methods:

This rule has an automated fix to remove the deprecated methods. Copy the custom configuration to your application build file to enable the fix automation.

For more Jakarta 10 migration information, see Differences between Jakarta Servlet 6.0 and 5.0.

Also, see the deprecation notes in the Servlet 6.0 Javadoc.