0

I have a generic class, defined as follows:

public abstract class BaseModel<T extends BaseModel> extends BaseEntity<T> {
    ...
    public Map<String,List<BaseModelConcrete>> itemsToDelete = new HashMap<>();
    ...
}

every time I get a BaseModel argument to a function, the property becomes Map, but when I change the argument to BaseModel<?> the argument is Map<String,List<BaseModelConcrete>> again.

Why is that ?

Sotirios Delimanolis
  • 274,122
  • 60
  • 696
  • 724
Nati
  • 1,034
  • 5
  • 19
  • 46

0 Answers0