rspec/rules/S2973/java/rule.adoc
2021-04-28 16:49:39 +02:00

17 lines
447 B
Plaintext

The use of Unicode escape sequences should be reserved for characters that would otherwise be ambiguous, such as unprintable characters.
This rule ignores sequences composed entirely of Unicode characters, but otherwise raises an issue for each Unicode character that represents a printable character.
== Noncompliant Code Example
----
String prefix = "n\u00E9e"; // Noncompliant
----
== Compliant Solution
----
String prefix = "née";
----