Fixed sonar violation major in compareManager