在使用Spring ApplicationContext及其方法getBeansOfType时,我遇到了泛型类型的问题。这说明了问题:{ new ArrayList(getBeansOfType(Generator.class).values()); // Raw type warning// for new ArrayList()
SomeType someType = new SomeType(otherTypes);}public class DumbOtherTypeCollection {
private finalapplicationContext.getBean(DumbOtherTypeCollection.class</e