How SoanrQube is handling the Object duplication?

we are facing an issue where we create the same object with the same name in different classes and SonarQube detects it as code duplication. but when we are just changing the the name of an object i.e :
Car ObjCar = new Car();
Car ObjCar1 = new Car();

Please guide me in this matter on how to handle the objects for the code duplication.


It’s not clear to me what the question is. Perhaps the docs on how duplications are determined will help.