I have two maps Something1 and Something2. Both extend the Class Something. 
Map<Class<? extends Something1>, String> m1
Map<Class<? extends Something2> ,String> m2
I want to create a more generic map m3 to which I can assign m1 or m2 like this:
Map<Class<? extends Something>, String> m3 = m1;
However I get the following exception:
Type mismatch: cannot convert from Map<Class<? extends Something1>, String> to Map<Class<? extends Something>, String>
I also tried using Class<?> but it doesn't seem to work.
What am I doing wrong ?
 
     
     
    