Let's trim your example down to only the class Inserter:
The compiler warning (use -Xlint to get more info) is:
What this means is that the compiler is going to allow you to add an Integer to the list even though you have not specified what type of objects the list contains. You may have passed in a list containing only Strings and after performing the add(new Integer(42)) you are going to have a mixture of Strings and Integers. This may cause problems later when you use the list. For example, if you take an object from the list thinking that it is a
String but it happens to be that Integer, then you will get a ClassCastException at runtime. Putting it simply, the warning is telling you that the compiler cannot check if you will or will not get a ClassCastException definitely because it does not know how you are intending to use the list in the future.
[ September 26, 2006: Message edited by: Barry Gaunt ]