Thanks to those who offered help. For anyone following this thread,
the solution for creating the dictionary was to define it as
NSDictionary tmpDict = new
NSDictionary(
new NSArray( new Object[] { location, schedType,
Integer.valueOf( nWeekday ) } ),
new NSArray( new String[] { "toLoc
I would prefer to use generics to make my code more robust. Generics
have revealed a few cases where I had bugs/quirks in my code that the
compiler never complained about before. In most cases, it is tedious
but easy to get generics working. The places where I seem to
encounter the most dif
ECTED]>
Fecha: 14 de agosto de 2008 10:20:43 a.m. GMT-05:00
Para: "WebObjects-Dev List"
Asunto: Re: Generics Frustrations
Personally, I think generics are a waste of time except as a means
of documenting method parameters and return values in library code.
And in cases where wan
On Aug 14, 2008, at 10:26 AM, Roger Perryman wrote:
What is the correct way to write these using generics?
Oops, almost forgot, there's a great video on using generics here
http://www.youtube.com/watch?v=pi_I7oD_uGI
and a reference from Sun on how to use them here
http://java.sun.com/j2se/
Hi Roger,
Do you want to use generics or are you just trying to make the
warnings go away? If it's the latter, adding
@SuppressWarnings("unchecked")
public class MyClass {
...
}
does the trick for me. It works with methods and members too if you
don't want to suppress on the entire class
Personally, I think generics are a waste of time except as a means of
documenting method parameters and return values in library code.
And in cases where want Object anyway, just skip the generics. But that's
just me.
John
On Thu, Aug 14, 2008 at 9:26 AM, Roger Perryman <[EMAIL PROTECTED]>wrote
All,
I am converting a project from Xcode 2.x (WO 5.3) to Eclipse 3.4 (WO
5.4.2). I have decided to also "upgrade" to using generics. So far,
it has not been a fun experience. I've read over the threads on this
list and several of the external references provided. Each time I
think I have