Format specifiers should be used instead of concatenation
What you will learn here about SonarQube
- Format specifiers should be used instead of concatenation
On the SonarQube one of common issue is format specifiers should be used instead of concatenation. So here we will see how to solve format specifiers should be used instead of concatenation issue.
Format specifiers should be used instead of concatenation
SonarQube cube shows Format specifiers should be used instead of concatenation issue when we concat string using + symbol. which is shown below
The Solution on Format specifiers should be used instead of concatenation is use String.format() to concat the String which is shown below