From 9d2752de54370b70c1dbec30c1edd9b359a3de3d Mon Sep 17 00:00:00 2001 From: Andrei Arlou Date: Wed, 30 Oct 2024 17:32:08 +0200 Subject: [PATCH] 3.x: Remove unused methods 'produce' and 'dispose' from PersistenceExtension.ReferenceCountingProducer (#9422) --- .../cdi/jpa/PersistenceExtension.java | 47 +------------------ 1 file changed, 1 insertion(+), 46 deletions(-) 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 585db8a9169..60187af946c 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 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Oracle and/or its affiliates. + * Copyright (c) 2023, 2024 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -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; @@ -1569,34 +1568,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, @@ -1617,22 +1588,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);