Make warning wording consistent (also with other languages like RegExp & JSON)

GitOrigin-RevId: 7d9dd613239030809eb1312436ce309c7cd13a12
This commit is contained in:
Bas Leijdekkers
2022-07-18 23:37:48 +00:00
committed by intellij-monorepo-bot
parent afa6c67153
commit 620e293d16
3 changed files with 12 additions and 12 deletions
@@ -330,7 +330,7 @@ empty.character.literal=Empty character literal
illegal.line.end.in.string.literal=Illegal line end in string literal
unclosed.char.literal=Unclosed character literal
illegal.escape.character.in.string.literal=Illegal escape character in string literal
illegal.unicode.escape=Illegal Unicode escape
illegal.unicode.escape=Illegal Unicode escape sequence
floating.point.number.too.large=Floating point number too large
floating.point.number.too.small=Floating point number too small
illegal.underscore=Illegal underscore
@@ -1,17 +1,17 @@
// tt \\<error descr="Illegal Unicode escape">\uuu00b</error>ro
// tt \\<error descr="Illegal Unicode escape sequence">\uuu00b</error>ro
// ken\\ua <- escaped backslash so not an unicode escape
// escape at the end 1 \
// escape at the end 2 <error descr="Illegal Unicode escape">\u</error>
// escape at the end 3 <error descr="Illegal Unicode escape">\uu</error>
// escape at the end 4 <error descr="Illegal Unicode escape">\uu1</error>
// escape at the end 5 <error descr="Illegal Unicode escape">\uu12</error>
// escape at the end 6 <error descr="Illegal Unicode escape">\uu123</error>
// unicode escaped backslash does not escape next backslash -> \u005c<error descr="Illegal Unicode escape">\u</error>
// escape at the end 2 <error descr="Illegal Unicode escape sequence">\u</error>
// escape at the end 3 <error descr="Illegal Unicode escape sequence">\uu</error>
// escape at the end 4 <error descr="Illegal Unicode escape sequence">\uu1</error>
// escape at the end 5 <error descr="Illegal Unicode escape sequence">\uu12</error>
// escape at the end 6 <error descr="Illegal Unicode escape sequence">\uu123</error>
// unicode escaped backslash does not escape next backslash -> \u005c<error descr="Illegal Unicode escape sequence">\u</error>
/*
in block comment
<error descr="Illegal Unicode escape">\u</error>
<error descr="Illegal Unicode escape sequence">\u</error>
\u000A <- correct escape
*/
/**
* in javadoc comment <error descr="Illegal Unicode escape">\u123</error>
* in javadoc comment <error descr="Illegal Unicode escape sequence">\u123</error>
*/
@@ -12,8 +12,8 @@ class UnnecessaryUnicodeEscape {
String str1 = "<warning descr="Unicode escape sequence '\u0061' can be replaced with 'a'">\u0061</warning>";
String str2 = "\\u0061"; // Backslash followed by the characters "u0061"
String str3 = "\\<warning descr="Unicode escape sequence '\u0061' can be replaced with 'a'">\u0061</warning>"; // Backslash followed by escape sequence
String str4 = <error descr="Illegal escape character in string literal">"\u004"</error>; // Too short to be a Unicode escape sequence
String str5 = <error descr="Illegal escape character in string literal">"\u004g"</error>; // Invalid hex character
String str4 = "<error descr="Illegal Unicode escape sequence">\u004</error>"; // Too short to be a Unicode escape sequence
String str5 = "<error descr="Illegal Unicode escape sequence">\u004</error>g"; // Invalid hex character
// <warning descr="Unicode escape sequence '\u0009' can be replaced with a tab character">\u0009</warning>
// <warning descr="Unicode escape sequence '\u000A' can be replaced with a line feed character">\u000A</warning>