diff --git a/impl/src/main/java/org/jboss/weld/persistence/PersistenceApiAbstraction.java b/impl/src/main/java/org/jboss/weld/persistence/PersistenceApiAbstraction.java index a8e875f8ca..c1f3f30127 100644 --- a/impl/src/main/java/org/jboss/weld/persistence/PersistenceApiAbstraction.java +++ b/impl/src/main/java/org/jboss/weld/persistence/PersistenceApiAbstraction.java @@ -44,7 +44,7 @@ public PersistenceApiAbstraction(ResourceLoader resourceLoader) { PERSISTENCE_CONTEXT_ANNOTATION_CLASS = annotationTypeForName("jakarta.persistence.PersistenceContext"); PERSISTENCE_UNIT_ANNOTATION_CLASS = annotationTypeForName("jakarta.persistence.PersistenceUnit"); PERSISTENCE_CONTEXT_TYPE_CLASS = classForName("jakarta.persistence.PersistenceContextType"); - if (PERSISTENCE_CONTEXT_TYPE_CLASS.getClass().equals(Dummy.class)) { + if (PERSISTENCE_CONTEXT_TYPE_CLASS.equals(Dummy.class)) { EXTENDED_PERSISTENCE_CONTEXT_ENUM_VALUE = enumValue(PERSISTENCE_CONTEXT_TYPE_CLASS, "EXTENDED"); } else { EXTENDED_PERSISTENCE_CONTEXT_ENUM_VALUE = DummyEnum.DUMMY_VALUE;