sonar warnings curly braces