我在编译代码时收到此警告(使用 -Xlint 选项):
receptor.java:286: warning: [unchecked] unchecked call to
FutureTask(java.util.concurrent.Callable<V>) as a member
of the raw type java.util.concurrent.FutureTask
生成警告的行:
FutureTask task = new FutureTask (new Return(address, lock));
Return 类实现了 Callable:
public class Return implements Callable <String> {
如何修复警告?