To get rid of raw-type warnings (also in implementations), the type parameters for Map should be specified in the interface methods as Map<? , ?>.