Code:
public List<InvoicePostAddressForm> invoicePostAddressListByStoreId(String storeId) throws BusinessException {
List voList = new ArrayList();
if (!result.getSuccess()) {
throw new BusinessException(result.getCode());
}
voList = (List)result.getResult();
ArrayList<InvoicePostAddressForm> formList = new ArrayList<InvoicePostAddressForm>();
for (InvoicePostAddressVo vo : voList) { // here's error
formList.add(this.ipavo2Form(vo));
}
return formList;
}
Code is from a decompiled project, i dont have sorce code, and
for (InvoicePostAddressVo vo : voList)
show an error in editor , i use Idea
Incompatible types.
Required:Object
Found:InvoicePostAddressVo
InvoicePostAddressVo is a object, and it requires a object, why show this error?