以下代码给了我编译时错误:缺少返回值和缺少返回语句,我会为此返回什么值Void Type
?
final SwingWorker<Void, Void> worker = new SwingWorker<Void, Void>() {
@Override
protected Void doInBackground() throws Exception {
// some code
if (something) {
return;
}
}
}