more eclipse fun
i'm getting this 'warning' from eclipse 3.1m2 (integration build):
Type safety: The method add(Object) belongs to the raw type Vector. References
to generic type Vector should be parameterized
// here is the declaration
Vector paddleMoveEventsCurrent = new Vector(10);
// here is the usage
synchronized(paddleMoveEventsCurrent) {
paddleMoveEventsCurrent.add(move);
}
interesting.
something new.
its this:
Vector paddleMoveEventsCurrent = new Vector(10);
its telling me that hey, that collection should have a generic type associated with it..
nifty..
wonder if it was also telling me of a different way to do it.
Type safety: The method add(Object) belongs to the raw type Vector. References
to generic type Vector
// here is the declaration
Vector paddleMoveEventsCurrent = new Vector(10);
// here is the usage
synchronized(paddleMoveEventsCurrent) {
paddleMoveEventsCurrent.add(move);
}
interesting.
something new.
its this:
Vector
its telling me that hey, that collection should have a generic type associated with it..
nifty..
wonder if it was also telling me of a different way to do it.
