solucion de warnings
Publicado por David (11 intervenciones) el 16/11/2006 10:59:05
me podeis hechar una mano?????????
Hashtable t;
//tablasSeries es otra Hashtable y lo que se le mete a t es otra hashtable.
t=(Hashtable) tablasSeries.get(serie);
Vector v = new Vector(t.keySet());
Collections.sort(v);
316: warning: [unchecked] unchecked call to Vector(java.util.Collection<? extends E>) as a member of the raw type java.util.Vector
Vector v = new Vector(t.keySet());
317: warning: [unchecked] unchecked conversion found : java.util.Vector required: java.util.List<T>
Collections.sort(v);
317: warning: [unchecked] unchecked method invocation: <T>sort(java.util.List<T>) in java.util.Collections is applied to (java.util.Vector)
Collections.sort(v);
350: warning: [unchecked] unchecked call to Vector(java.util.Collection<? extends E>) as a member of the raw type java.util.Vector
Vector v = new Vector(t.keySet());
:351: warning: [unchecked] unchecked conversion found : java.util.Vector
required: java.util.List<T>
Collections.sort(v);
351: warning: [unchecked] unchecked method invocation: <T>sort(java.util.List<T>) in java.util.Collections is applied to (java.util.Vector)
Collections.sort(v);
Hashtable t;
//tablasSeries es otra Hashtable y lo que se le mete a t es otra hashtable.
t=(Hashtable) tablasSeries.get(serie);
Vector v = new Vector(t.keySet());
Collections.sort(v);
316: warning: [unchecked] unchecked call to Vector(java.util.Collection<? extends E>) as a member of the raw type java.util.Vector
Vector v = new Vector(t.keySet());
317: warning: [unchecked] unchecked conversion found : java.util.Vector required: java.util.List<T>
Collections.sort(v);
317: warning: [unchecked] unchecked method invocation: <T>sort(java.util.List<T>) in java.util.Collections is applied to (java.util.Vector)
Collections.sort(v);
350: warning: [unchecked] unchecked call to Vector(java.util.Collection<? extends E>) as a member of the raw type java.util.Vector
Vector v = new Vector(t.keySet());
:351: warning: [unchecked] unchecked conversion found : java.util.Vector
required: java.util.List<T>
Collections.sort(v);
351: warning: [unchecked] unchecked method invocation: <T>sort(java.util.List<T>) in java.util.Collections is applied to (java.util.Vector)
Collections.sort(v);
Valora esta pregunta


0