Re: Unchecked compiler warning
- From: John T <printdude1968@xxxxxxxxx>
- Date: Sun, 25 Feb 2007 03:00:29 GMT
Lew wrote:
MikeB wrote:So are you assuming that there is a class called Canoe somewhere in the OP's class structure?
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
.
- Follow-Ups:
- Re: Unchecked compiler warning
- From: Lew
- Re: Unchecked compiler warning
- References:
- Unchecked compiler warning
- From: MikeB
- Re: Unchecked compiler warning
- From: John T
- Re: Unchecked compiler warning
- From: Lew
- Unchecked compiler warning
- Prev by Date: Re: Can this Class be cleaned up at all?
- Next by Date: Re: Can this Class be cleaned up at all?
- Previous by thread: Re: Unchecked compiler warning
- Next by thread: Re: Unchecked compiler warning
- Index(es):
Relevant Pages
|