mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
[java-inspections] IDEA-357009 new option to configure custom classes for IncorrectMessageFormatInspection
GitOrigin-RevId: ab026ee405f78ff29519afb0db62449a682b5bd3
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b1e1776977
commit
abb1899900
+14
@@ -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>);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user