D
Don Leckie
Hello,
Could someone please explain the JDK 1.5 warning below? It appears every
readObject( ) for a list. I've tried several things, but cannot correct the
code to eliminate the warning.
Sample code:
private List<TLoopingData> m_loopingData;
.. . .
m_loopingData = (ArrayList<TLoopingData>) reader.readObject( );
The warning:
Type safety: The cast from Object to ArrayList<TLoopData> is actually
checking against the erased type ArrayList.
Thank you,
Don
Could someone please explain the JDK 1.5 warning below? It appears every
readObject( ) for a list. I've tried several things, but cannot correct the
code to eliminate the warning.
Sample code:
private List<TLoopingData> m_loopingData;
.. . .
m_loopingData = (ArrayList<TLoopingData>) reader.readObject( );
The warning:
Type safety: The cast from Object to ArrayList<TLoopData> is actually
checking against the erased type ArrayList.
Thank you,
Don