[java-inspections] IDEA-357009 new option to configure custom classes for IncorrectMessageFormatInspection

GitOrigin-RevId: ab026ee405f78ff29519afb0db62449a682b5bd3
This commit is contained in:
Mikhail Pyltsin
2024-09-19 12:20:53 +00:00
committed by intellij-monorepo-bot
parent b1e1776977
commit abb1899900
4 changed files with 83 additions and 5 deletions
@@ -0,0 +1,14 @@
package org.example.util;
import java.text.MessageFormat;
class Formatter {
public static String formatNew(String pattern, Object... arguments) {
return MessageFormat.format(pattern, arguments);
}
public static void main(String[] args)
{
final String format2 = formatNew("Hello {0}", "Alice", <warning descr="Argument with index '1' is not used in the pattern">"Bob"</warning>);
}
}