检查 OpenJPAEntityManager detach(T pc) 方法的行为更改

此规则会标记方法 org.apache.openjpa.persistence.OpenJPAEntityManager.detach(T pc) org.apache.openjpa.persistence.OpenJPAEntityManagerSPI.detach(T pc)

此方法在 OpenJPA 1.x 中作为规范的其他功能部件而存在。 该方法已添加至 JPA 2.0 规范。 然而,方法特征符已发生更改。 新方法特征符返回 a void 而 openJPA 1.x 返回了通用 <T> T 对象。 OpenJPA 添加了新方法 detachCopy(T pc) 以保留现有行为。

自动修复将更改 detach() 方法 detachCopy() .

有关更多信息,请参阅: