I have this code that is giving me a suppress warning
public Class getColumnClass(int column) {
return getValueAt(0, column).getClass();
}
The error mentions something about accepting an unchecked conversion so I tried adding Class<?>
but it also recommended to put in Class<? extends Object>
. I have read about this before but I can't remember where. I think <?>
means it accepts any object, and ? extends Object
must mean that the class is a subclass of Object, but isn't that the same thing? Both examples give me no error.