public <T> T[] toArray(T objects[]) {
// ak: the original imp is plain garbage. Who came up with this?
// NSArray array = arrayByAddingObjectsFromArray(new NSArray(objects));
// return (T[]) array.objects();
if(objects.length < _objects.length) {
objects = (T[]) java.lang.reflect.Array.newInstance(objects.getClass().getComponentType(), _objects.length);
}
for (int i = 0; i < _objects.length; i++) {
objects[i] = (T) _objects[i];
}
return objects;
}
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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