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!

unchecked conversion problems

843793Oct 14 2004 — edited Oct 17 2004
I'm using a Vector where I'm storing some Vectors containing some Integers. When I'm compiling I'm getting the following warning:
HHH.java:130: warning: [unchecked] unchecked conversion
found   : java.util.Vector
required: java.util.Vector<java.util.Vector>
                        cellsInformation = (Vector)dats.get("Cells Information ASquad");
where dats and cellsInformation are as follows:
HashMap<String, Vector> dats = new HashMap<String, Vector>();
Vector<Vector> cellsInformation = new Vector<Vector>();
How can I get this Vector out of the HashMap without a warning (even so, how does one get an element out of a Vector without warnings like "unchecked call to...")
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 14 2004
Added on Oct 14 2004
3 comments
188 views