I am getting this warning on Sonar:
Avoid using implementation types like 'HashMap'; use the interface instead
What does it mean?
The class in which i get this warning is as:
class A {
private HashMap<String, String> map=new HashMap<String, String>();
//getters and setters
}
Please, I want proper solution to avoid warning on Sonar.