Check for a behavior change on OpenJPAEntityManager detach(T pc) method

This rule flags the method org.apache.openjpa.persistence.OpenJPAEntityManager.detach(T pc) and org.apache.openjpa.persistence.OpenJPAEntityManagerSPI.detach(T pc)

This method existed in OpenJPA 1.x as an additional feature to the specification. The method was added to the JPA 2.0 Specifications. However; the method signature has changed. The new method signature returns a void while the openJPA 1.x returned a generic <T> T object. OpenJPA added the new method detachCopy(T pc) to keep the existing behavior.

An automated fix will change the detach() method to detachCopy() .

For more information, see: