我创建了一个单元测试:
new Callable() {
@Override
public Object call() throws
.....
我在 Eclipse 中收到了警告:
Callable is a raw type. References to generic type Callable<V>
should be parameterized
我应该像这样编写代码吗:
new Callable<Object>()
为了消除警告,还是不消除?看起来只有junit测试,添加额外的代码没有意义...谢谢。