![]() |
|
|
|
|
1
4th November 03:50
External User
Posts: 1
|
Hi, I'm trying to get rid of the warning ""GameListRenderer.java":
[unchecked] unchecked conversion; found : java.util.Collection, required: java.util.Collection<? extends java.util.Collection> at line 95, column 83 in the following line: ArrayList<Collection> gameList = new ArrayList <Collection> (games.getValues()); games is an instance of this: public class GameListManager { TreeMap<String, GameRec> gameListTreeMap; public GameListManager() { gameListTreeMap = new TreeMap<String, GameRec>(); } public Collection getValues() { return gameListTreeMap.values(); } .... } As you can see getValues() returns a Collection, so I can't see what the warning is trying to tell me. Thanks very much JB2006/jdk6.01 -- www.phonewebcam.com |
|
|
|
|
5
4th November 03:51
External User
Posts: 1
|
That did it - thanks. I even fixed the Comparater one after your help too -
thanks again. -- John www.phonewebcam.com |
|
|
|