Inspectopedia Help

Redundant call to 'String.format()'

Reports calls to methods like format() and printf() that can be safely removed or simplified.


System.out.println(String.format("Total count: %d", 42));

After the quick-fix is applied:

System.out.printf("Total count: %d%n", 42);

Inspection Details

By default bundled with:

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin:

Java, 241.16690

Last modified: 29 April 2024