Reports redundant embedded expressions in STR templates, such as trivial literals or empty expressions.

Example:


  System.out.println(STR."Hello \{"world"}");

After the quick-fix is applied:


  System.out.println(STR."Hello world");

This inspection only reports if the language level of the project or module is 21 or higher.

New in 2023.3