Sonar error Visibility modifiers solved