I am using 3.0 Apache Cayenne, how can I ommit @SuppressWarnings("unchecked") in Eclipse for such simple code:
public List<Some> getSomes() {
SelectQuery select = new SelectQuery(Some.class);
List<Some> somes = dbContext.performQuery(select);
return somes;
}
I cannot find any solution, is it because (I think) performQuery retuns an object List ?