Collection.sort() [unchecked] warning
843793Feb 16 2005 — edited Aug 25 2005Hello!
I would really like to get rid of a compiler warning I don't understand.
warning: [unchecked] unchecked method invocation: <T>sort(java.util.List<T>) in java.util.Collections is applied to (java.util.List<diffusiontensorimaging.data.ImageDataClass>)
The class ImageDataClass implements the interface Comparable, as written in the Trail: Collections of Sun.
These ImageDataClasses are collected in an ArrayList<ImageDataClass>(). After that i need to sort the ArrayList , doing it by using the method Collections.sort(java.util.List<T>). After compiling the source the above warning appears!
The list is sorting correctly but this warning is irritating!
Thank you in advance
Martin