diff --git a/integrations/cdi/jpa-cdi/src/main/java/io/helidon/integrations/cdi/jpa/PersistenceExtension.java b/integrations/cdi/jpa-cdi/src/main/java/io/helidon/integrations/cdi/jpa/PersistenceExtension.java index 665a2c1c367..2d3ad237ecb 100644 --- a/integrations/cdi/jpa-cdi/src/main/java/io/helidon/integrations/cdi/jpa/PersistenceExtension.java +++ b/integrations/cdi/jpa-cdi/src/main/java/io/helidon/integrations/cdi/jpa/PersistenceExtension.java @@ -27,7 +27,6 @@ import java.net.URLClassLoader; import java.security.CodeSource; import java.security.ProtectionDomain; -import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.Enumeration; @@ -1642,34 +1641,6 @@ private T produce(Supplier supplier, return this.produce(supplier, disposer, Set.of(type), qualifiers); } - private T produce(Supplier supplier, - Consumer disposer, - Class type, - Annotation... qualifiers) { - return this.produce(supplier, disposer, Set.of(type), Set.copyOf(Arrays.asList(qualifiers))); - } - - private T produce(Supplier supplier, - Consumer disposer, - TypeLiteral type, - Set qualifiers) { - return this.produce(supplier, disposer, Set.of(type.getType()), qualifiers); - } - - private T produce(Supplier supplier, - Consumer disposer, - TypeLiteral type, - Annotation... qualifiers) { - return this.produce(supplier, disposer, Set.of(type.getType()), Set.copyOf(Arrays.asList(qualifiers))); - } - - private T produce(Supplier supplier, - Consumer disposer, - Set types, - Annotation... qualifiers) { - return this.produce(supplier, disposer, types, Set.copyOf(Arrays.asList(qualifiers))); - } - private T produce(Supplier supplier, Consumer disposer, Set types, @@ -1690,22 +1661,6 @@ private void dispose(Class type, Set qualifiers) { this.dispose(Set.of(type), qualifiers); } - private void dispose(Class type, Annotation... qualifiers) { - this.dispose(Set.of(type), Set.copyOf(Arrays.asList(qualifiers))); - } - - private void dispose(TypeLiteral type, Set qualifiers) { - this.dispose(Set.of(type.getType()), qualifiers); - } - - private void dispose(TypeLiteral type, Annotation... qualifiers) { - this.dispose(Set.of(type.getType()), Set.copyOf(Arrays.asList(qualifiers))); - } - - private void dispose(Set types, Annotation... qualifiers) { - this.dispose(types, Set.copyOf(Arrays.asList(qualifiers))); - } - private void dispose(Set types, Set qualifiers) { Map>> tlMap = TL.get(); Map> map = tlMap.get(this);