Reports incorrect message format patterns or incorrect indexes of placeholders

The following errors are reported:

Examples:


  MessageFormat.format("{wrong}", 1); // incorrect index
  MessageFormat.format("{0", 1); // Unmatched brace
  MessageFormat.format("'{0}", 1); // Unpaired quote
  MessageFormat.format("It''''s {0}", 1); // "It''s" will be printed, instead of "It's"
  MessageFormat.format("{0}", 1, 2); // The argument with index '1' is not used in the pattern

New in 2023.2