When I compile the source on my Snow Leopard system, I see the following messages after running the ``javac` command.
Note: npdstracker.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Recompiling using the switch as suggested returns the following:
npdstracker.java:461: warning: [unchecked] unchecked call to addElement(E) as a member of the raw type java.util.Vector
kPort.addElement(new Integer(thePort));
^
npdstracker.java:511: warning: [unchecked] unchecked call to addElement(E) as a member of the raw type java.util.Vector
mSharingInfoVector.addElement(theServerInfo);
^
npdstracker.java:656: warning: [unchecked] unchecked call to addElement(E) as a member of the raw type java.util.Vector
kPort.addElement(new Integer(DEFAULT_PORT));
^
npdstracker.java:696: warning: [unchecked] unchecked call to addElement(E) as a member of the raw type java.util.Vector
mServers.addElement(theServer);
^
npdstracker.java:847: warning: [unchecked] unchecked call to addElement(E) as a member of the raw type java.util.Vector
mHostInfoVector.addElement( theInfo );
^
npdstracker.java:1372: warning: [unchecked] unchecked call to addElement(E) as a member of the raw type java.util.Vector
mSharingInfoVector.addElement(theServerInfo);
^
npdstracker.java:1620: warning: [unchecked] unchecked call to addElement(E) as a member of the raw type java.util.Vector
mHostInfoVector.addElement( theNewInfo );
^
7 warnings
I’m assuming that this isn’t serious, since the tracker seems to run without any issues and doesn’t seem to throw any similarly worded errors into the log.
However, it would be nice to tidy this up.
When I compile the source on my Snow Leopard system, I see the following messages after running the ``javac` command.
Note: npdstracker.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details.Recompiling using the switch as suggested returns the following:
I’m assuming that this isn’t serious, since the tracker seems to run without any issues and doesn’t seem to throw any similarly worded errors into the log.
However, it would be nice to tidy this up.