package com.siyeh.igtest.internationalization.unnecessary_unicode_escape;

class UnnecessaryUnicodeEscape {
  // <warning descr="Unicode escape sequence '\uuuuuu0061' can be replaced with 'a'">\uuuuuu0061</warning><warning descr="Unicode escape sequence '\u0062' can be replaced with 'b'">\u0062</warning>
  // control char & not representable char: \u0010 \u00e4

  char[] surrogates = new char[]{'\ud800','\udc00'};

  String t = "<warning descr="Unicode escape sequence '\u0020' can be replaced with ' '">\u0020</warning>";
  String u = "\u200B\u200E\u00A0\u200F";
}
@SuppressWarnings("UnnecessaryUnicodeEscape")
class Suppress {
  String s = "\u0062";
}
@@ -560,16 +560,610 @@
 %5Cu200F%22;
+%0A%0A  String str1 = %22%3Cwarning descr=%22Unicode escape sequence '%5Cu0061' can be replaced with 'a'%22%3E%5Cu0061%3C/warning%3E%22;%0A  String str2 = %22%5C%5Cu0061%22; // Backslash followed by the characters %22u0061%22%0A  String str3 = %22%5C%5C%3Cwarning descr=%22Unicode escape sequence '%5Cu0061' can be replaced with 'a'%22%3E%5Cu0061%3C/warning%3E%22; // Backslash followed by escape sequence%0A  String str4 = %3Cerror descr=%22Illegal escape character in string literal%22%3E%22%5Cu004%22%3C/error%3E; // Too short to be a Unicode escape sequence%0A  String str5 = %3Cerror descr=%22Illegal escape character in string literal%22%3E%22%5Cu004g%22%3C/error%3E; // Invalid hex character
 %0A%7D%0A@Supp

Add more tests for UnnecessaryUnicodeEscapeInspection