Actually it is. NSArray has the right method in 5.4:
@SuppressWarnings( { "unchecked", "cast" })
public static final <T> NSArray<T> emptyArray() {
return (NSArray<T>) EmptyArray;
}Pierre -- Pierre Frisch [EMAIL PROTECTED] On Nov 1, 2007, at 14:20, Mike Schrag wrote:
4) I don't believe NSArray.EmptyArray is genericized properly (I'm
not sure it is in Project Wonder, either). The proper definition
should be:
@SuppressWarnings("unchecked")
public static <T> NSArray<T> emptyArray() {
return NSArray.EmptyArray;
}
at which point you would use:
NSArray<String> emptyStringArray = NSArray.<String>emptyArray();
In the absence of that definition, you will need to cast (and add a
warning ignore).
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
