Sometime when looking through code, I see many methods specify an annotation:
@SuppressWarnings(\"unchecked\")
What does this mean?
You can suppress the compiler warnings and tell the generics that the code which you had written is legal according to it.
Example:
@SuppressWarnings("unchecked")
public List retreiveMealPlan() {
List list=new ArrayList();
TestMenuService testMenuService=new TestMenuService(em, this.selectedInstance);
list = testMenuService.getMeal(reservationMealPlan);
return list;
}