[Collection] type paramétré
Bonjour
J'ai un warning dont je souhaite me débarasser dans mon code :
Code:
1 2
|
Collection<PPath>list = this.selectionEventHandler.getSelection(); |
La méthode getSelection me retourne une collection que je veux paramétrer en objet PPath. Mais c'est insuffisant et j'ai un warning :
Code:
1 2
|
Type safety: The expression of type Collection needs unchecked conversion to conform to Collection<PPath> |
Sans doute un manque de connaissance du langage pour java 1.5.
Quelqu'un peut-il éclairer ma lanterne ?
Merci d'avance.
@++