C
cell
Dear all,
I have an old java programmer using jdk 1.4.x.
After I update the jdk to 1.5, a warning is checked out.
The original line is:
Class[] cls={String.class,String.class,Integer.class};
and the warning is:
Class is a raw type. References to generic type Class<T> should be
parameterized.
However, I cannot solved it. I have tried
Class<Object>[] cls={String.class,String.class,Integer.class};
it does not work.
Could anyone help me?
Thanks!
I have an old java programmer using jdk 1.4.x.
After I update the jdk to 1.5, a warning is checked out.
The original line is:
Class[] cls={String.class,String.class,Integer.class};
and the warning is:
Class is a raw type. References to generic type Class<T> should be
parameterized.
However, I cannot solved it. I have tried
Class<Object>[] cls={String.class,String.class,Integer.class};
it does not work.
Could anyone help me?
Thanks!