I keep getting a compiler warning that says: "Some input files use unsafe or unchecked operations". I did some research online and it seems to have something to do with defining a list wrong. However, I have defined my list as I saw in the greenfoot book, but I still get the warning. I have copied part of the code below. I commented out the line that is causing the warning. Can someone help me? I know this runs fine, but I don't want the warning message.
private List<Tile> tiles;
:
(code omitted here)
:
/**
* Check for the end of the game when all tiles are in position.
*/
public void act()
{
//tiles = getObjects(Tile.class);
boolean allInPosition = true;
for (Tile tile : tiles)
{
if(!tile.inPosition()) {
allInPosition = false;
}
}
if(allInPosition) {
Greenfoot.playSound("TwoBits.wav");
Greenfoot.stop();
}
}

