mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Make warning wording consistent (also with other languages like RegExp & JSON)
GitOrigin-RevId: 7d9dd613239030809eb1312436ce309c7cd13a12
This commit is contained in:
committed by
intellij-monorepo-bot
parent
afa6c67153
commit
620e293d16
@@ -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
|
||||
|
||||
+9
-9
@@ -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>
|
||||
*/
|
||||
+2
-2
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user