The build is still successful and the bot works in Lux, but I'm wondering if I should worry about this...NetBeans IDE 5.5 wrote:Note: C:\Program Files\Lux\LuxSDK\src\com\sillysoft\lux\agent\Defender.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Compile Error?
Compile Error?
Do you know about generics in Java? If not, read below:
If you know C++, generics are Java's version of C++ templates.
It used to be that to use a Vector, you had to write nasty code like
Code: Select all
Vector neighbors = new Vector();
neighbors.add(c);
int code = ((Country)neighbors.get(i)).getCode();
Code: Select all
Vector<Country> neighbors = new Vector<Country>();
neighbors.add(c);
int code = neighbors.get(i).getCode();
I suspect there's a way you can turn off the warning if it bothers you.
Who is online
Users browsing this forum: No registered users and 51 guests