In one of my classes I have...
public Class<? extends Map<K, V>> getObjectType() {
return (Class<? extends Map<K, V>>) Map.class;
}
What is wrong with this code
I keep getting
error: incompatible types: Class <Map> cannot be converted to Class<extends Map<K,V>>
return (Class<? extends Map<K, V>>) Map.class;
Can someone point me in the right direction