Skip to content

Commit 9d2752d

Browse files
authored
3.x: Remove unused methods 'produce' and 'dispose' from PersistenceExtension.ReferenceCountingProducer (#9422)
1 parent 6d1b5b1 commit 9d2752d

File tree

1 file changed

+1
-46
lines changed

1 file changed

+1
-46
lines changed

integrations/cdi/jpa-cdi/src/main/java/io/helidon/integrations/cdi/jpa/PersistenceExtension.java

Lines changed: 1 addition & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2023 Oracle and/or its affiliates.
2+
* Copyright (c) 2023, 2024 Oracle and/or its affiliates.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -27,7 +27,6 @@
2727
import java.net.URLClassLoader;
2828
import java.security.CodeSource;
2929
import java.security.ProtectionDomain;
30-
import java.util.Arrays;
3130
import java.util.Collection;
3231
import java.util.Collections;
3332
import java.util.Enumeration;
@@ -1569,34 +1568,6 @@ private <T> T produce(Supplier<? extends T> supplier,
15691568
return this.produce(supplier, disposer, Set.of(type), qualifiers);
15701569
}
15711570

1572-
private <T> T produce(Supplier<? extends T> supplier,
1573-
Consumer<? super T> disposer,
1574-
Class<T> type,
1575-
Annotation... qualifiers) {
1576-
return this.produce(supplier, disposer, Set.of(type), Set.copyOf(Arrays.asList(qualifiers)));
1577-
}
1578-
1579-
private <T> T produce(Supplier<? extends T> supplier,
1580-
Consumer<? super T> disposer,
1581-
TypeLiteral<T> type,
1582-
Set<Annotation> qualifiers) {
1583-
return this.produce(supplier, disposer, Set.of(type.getType()), qualifiers);
1584-
}
1585-
1586-
private <T> T produce(Supplier<? extends T> supplier,
1587-
Consumer<? super T> disposer,
1588-
TypeLiteral<T> type,
1589-
Annotation... qualifiers) {
1590-
return this.produce(supplier, disposer, Set.of(type.getType()), Set.copyOf(Arrays.asList(qualifiers)));
1591-
}
1592-
1593-
private <T> T produce(Supplier<? extends T> supplier,
1594-
Consumer<? super T> disposer,
1595-
Set<Type> types,
1596-
Annotation... qualifiers) {
1597-
return this.produce(supplier, disposer, types, Set.copyOf(Arrays.asList(qualifiers)));
1598-
}
1599-
16001571
private <T> T produce(Supplier<? extends T> supplier,
16011572
Consumer<? super T> disposer,
16021573
Set<Type> types,
@@ -1617,22 +1588,6 @@ private <T> void dispose(Class<T> type, Set<Annotation> qualifiers) {
16171588
this.dispose(Set.of(type), qualifiers);
16181589
}
16191590

1620-
private <T> void dispose(Class<T> type, Annotation... qualifiers) {
1621-
this.dispose(Set.of(type), Set.copyOf(Arrays.asList(qualifiers)));
1622-
}
1623-
1624-
private <T> void dispose(TypeLiteral<T> type, Set<Annotation> qualifiers) {
1625-
this.dispose(Set.of(type.getType()), qualifiers);
1626-
}
1627-
1628-
private <T> void dispose(TypeLiteral<T> type, Annotation... qualifiers) {
1629-
this.dispose(Set.of(type.getType()), Set.copyOf(Arrays.asList(qualifiers)));
1630-
}
1631-
1632-
private <T> void dispose(Set<Type> types, Annotation... qualifiers) {
1633-
this.dispose(types, Set.copyOf(Arrays.asList(qualifiers)));
1634-
}
1635-
16361591
private <T> void dispose(Set<Type> types, Set<Annotation> qualifiers) {
16371592
Map<ReferenceCountingProducer, Map<ProductionId, Production<?>>> tlMap = TL.get();
16381593
Map<ProductionId, Production<?>> map = tlMap.get(this);

0 commit comments

Comments
 (0)