2727import java .net .URLClassLoader ;
2828import java .security .CodeSource ;
2929import java .security .ProtectionDomain ;
30- import java .util .Arrays ;
3130import java .util .Collection ;
3231import java .util .Collections ;
3332import java .util .Enumeration ;
@@ -1666,34 +1665,6 @@ private <T> T produce(Supplier<? extends T> supplier,
16661665 return this .produce (supplier , disposer , Set .of (type ), qualifiers );
16671666 }
16681667
1669- private <T > T produce (Supplier <? extends T > supplier ,
1670- Consumer <? super T > disposer ,
1671- Class <T > type ,
1672- Annotation ... qualifiers ) {
1673- return this .produce (supplier , disposer , Set .of (type ), Set .copyOf (Arrays .asList (qualifiers )));
1674- }
1675-
1676- private <T > T produce (Supplier <? extends T > supplier ,
1677- Consumer <? super T > disposer ,
1678- TypeLiteral <T > type ,
1679- Set <Annotation > qualifiers ) {
1680- return this .produce (supplier , disposer , Set .of (type .getType ()), qualifiers );
1681- }
1682-
1683- private <T > T produce (Supplier <? extends T > supplier ,
1684- Consumer <? super T > disposer ,
1685- TypeLiteral <T > type ,
1686- Annotation ... qualifiers ) {
1687- return this .produce (supplier , disposer , Set .of (type .getType ()), Set .copyOf (Arrays .asList (qualifiers )));
1688- }
1689-
1690- private <T > T produce (Supplier <? extends T > supplier ,
1691- Consumer <? super T > disposer ,
1692- Set <Type > types ,
1693- Annotation ... qualifiers ) {
1694- return this .produce (supplier , disposer , types , Set .copyOf (Arrays .asList (qualifiers )));
1695- }
1696-
16971668 private <T > T produce (Supplier <? extends T > supplier ,
16981669 Consumer <? super T > disposer ,
16991670 Set <Type > types ,
@@ -1714,22 +1685,6 @@ private <T> void dispose(Class<T> type, Set<Annotation> qualifiers) {
17141685 this .dispose (Set .of (type ), qualifiers );
17151686 }
17161687
1717- private <T > void dispose (Class <T > type , Annotation ... qualifiers ) {
1718- this .dispose (Set .of (type ), Set .copyOf (Arrays .asList (qualifiers )));
1719- }
1720-
1721- private <T > void dispose (TypeLiteral <T > type , Set <Annotation > qualifiers ) {
1722- this .dispose (Set .of (type .getType ()), qualifiers );
1723- }
1724-
1725- private <T > void dispose (TypeLiteral <T > type , Annotation ... qualifiers ) {
1726- this .dispose (Set .of (type .getType ()), Set .copyOf (Arrays .asList (qualifiers )));
1727- }
1728-
1729- private <T > void dispose (Set <Type > types , Annotation ... qualifiers ) {
1730- this .dispose (types , Set .copyOf (Arrays .asList (qualifiers )));
1731- }
1732-
17331688 private <T > void dispose (Set <Type > types , Set <Annotation > qualifiers ) {
17341689 Map <ReferenceCountingProducer , Map <ProductionId , Production <?>>> tlMap = TL .get ();
17351690 Map <ProductionId , Production <?>> map = tlMap .get (this );
0 commit comments