【发布时间】:2012-09-21 22:47:21
【问题描述】:
可能重复:
Java Generics
在 Eclipse 中,我收到了使用“rawtypes”的警告,其中一个修复方法是添加 <?>。例如:
Class parameter = String.class;
//Eclipse would suggest a fix by converting to the following:
Class<?> parameter = String.class;
<?> 究竟是什么意思?
【问题讨论】:
-
如果您想深入了解泛型,请参阅effective chapter 5
-
恕我直言,它代表混乱。 ;)