Re: Generics Question
Re: Generics Question
- Subject: Re: Generics Question
- From: Mike Schrag <email@hidden>
- Date: Thu, 20 Dec 2007 20:59:26 -0500
Will someone please help me here? How do I do the following without getting the pesky warning from Eclipse about unchecked type conversion?
NSArray<NewsKeywords> newsKeywords = EOUtilities.objectsForEntityNamed(EOSharedEditingContext.defaultSharedEditingContext(), "NewsKeywords");
You can't ... None of the EOUtilities methods use static generic declarations. You will have to add a @SuppressWarning annotation (quickfix will do it for you). By the way, you should be using entity constants (NewsKeywords.ENTITY_NAME) instead of string literals ("NewsKeywords") ... It will save you one day.
ms |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden