Back to Intellij Community

StringTemplateReverseMigration

java/java-impl/resources/inspectionDescriptions/StringTemplateReverseMigration.html

2025.3-rc-2386 B
Original Source

Reports string template expressions using the STR processor and offers a quick-fix to migrate back to a plain string concatenation.

Example:

String name = "Bob";
  String greeting = STR."Hello, \{name}. You are 29 years old.";

After the quick-fix is applied:

String name = "Bob";
  String greeting = "Hello, " + name + ". You are 29 years old.";

New in 2024.2