What does -Xlint compile error mean?
807601May 10 2008 — edited May 10 2008I am new to Java.... I have an application and when I run the javac compiler I am getting the following error.
Note: InventoryFinal.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
So then I compiled using javac -Xlint and I get the following error
InventoryFinal.java:20: warning: [unchecked] unchecked conversion
found : java.util.ArrayList
required: java.util.ArrayList<Company>
al=new ArrayList();
^
1 warning
After I compile with the -Xlint switch the application runs as I expect it to. I am concerned about this message and would like to undestand how to fix the problem