Back to Intellij Community

ConfusingOctalEscape

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

2025.3-rc-2300 B
Original Source

Reports string literals containing an octal escape sequence immediately followed by a digit.

Such strings may be confusing, and are often the result of errors in escape code creation.

Example:

System.out.println("\1234"); // Octal escape sequence '\123' immediately followed by a digit