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.