This rule flags the use ConnectionFactory MBean deprecated method names:
These operations can be invoked on the ConnectionFactory MBean.
The rule scans for the string literals of "getPoolContents", "getAllPoolContents", and "showAllocationHandleList". The strings are detected even when not being used on an invoke method since the name constants might be coded in different utility classes.
If the string "getPoolContents" is used to invoke the ConnectionFactory method, it can be manually migrated to "showPoolContents".
If the string "getAllPoolContents" is used to invoke the ConnectionFactory method, it can be manually migrated to "showAllPoolContents".
There is no replacement method for showAllocationHandleList.
If you get false-positive results, you can use the Ignore Result option to prevent the same code from producing results again.
See the ConnectionFactory MBean API specification for more information.
The Deprecated features list is in the documentation.