Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Collection.sort() [unchecked] warning

843793Feb 16 2005 — edited Aug 25 2005
Hello!

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 22 2005
Added on Feb 16 2005
8 comments
558 views