N
nooooob
Gast
Habe eine Warning beim Casten von einem Obkject auf ein Treeset...die ich gerne beseitigt haben möchte.
Das Programm funzt aber die warning muss weg!
Waning: "Type safety: The cast from object to TreeSet<Integer> is actually checking against the erased type TreeSet"
Please help
Das Programm funzt aber die warning muss weg!
Code:
TreeSet<Integer> temp = [u](TreeSet<Integer>)indicatedWords.get(word).get(2);[/u]
temp.add(startposition);
indicatedWords.get(word).set(2, temp);
Waning: "Type safety: The cast from object to TreeSet<Integer> is actually checking against the erased type TreeSet"
Please help