Re: Unchecked compiler warning



Lew wrote:
MikeB wrote:

G:\BCIS 3680\Problem 2\src\my\Problem2\TestError.java:14: warning:
[unchecked] unchecked call to addElement(E) as a member of the raw
type java.util.Vector
--------------------
package my.Problem2;

import java.util.Vector;
class TestError {


protected Vector<Canoe> canoes = new Vector<Canoe>();

public synchronized void addRow(Canoe c) {
boolean addedRow = false;
canoes.addElement(c);
}
}


- Lew
So are you assuming that there is a class called Canoe somewhere in the OP's class structure?
.



Relevant Pages

  • Re: Unchecked compiler warning
    ... unchecked call to addElementas a member of the raw ... package my.Problem2; ... class TestError { ...
    (comp.lang.java.help)
  • Re: Photoshop elements 6.0
    ... The package didn't mention RAW files and thats where I would like to ... Does anybody know if Elements can handle RAW? ... I will be using the Photo Editor for the pics from my Nikon D80 and I'm ...
    (rec.photo.digital)
  • Re: Christmas SWAP received
    ... I didn't know who might have sent me such a large package because I ... 1958 Franklin Half Dollar in a Green Label PCGS Holder PR64 1 ea. ... 1995-S Jefferson Nickel NGC Ultra Cam PF67 ... 1941-D Jefferson Nickel {RAW} ...
    (rec.collecting.coins)
  • Re: Photoshop elements 6.0
    ... The package didn't mention RAW files and thats where I would like to explore. ... I have been using my friends old Photoshop 7 and am able to get it to use RAW, ... Elements 6 also came with Premier Elements and the double package was for 150 at Staples. ...
    (rec.photo.digital)
  • Christmas SWAP received
    ... I didn't know who might have sent me such a large package because I wasn't expecting anything as big as this from anyone I knew. ... 1958 Franklin Half Dollar in a Green Label PCGS Holder PR64 1 ea. ... 1995-S Jefferson Nickel NGC Ultra Cam PF67 ... 1941-D Jefferson Nickel {RAW} ...
    (rec.collecting.coins)