IG: don't warn on call to .formatted() when qualifier contains %n (IDEA-284569)

GitOrigin-RevId: e1b9a826f67e0209f82810ed19f907b2d0161605
This commit is contained in:
Bas Leijdekkers
2022-01-06 17:45:30 +01:00
committed by intellij-monorepo-bot
parent 4c25f88d51
commit df2af98547
7 changed files with 60 additions and 79 deletions

View File

@@ -14,5 +14,8 @@ class Main {
String s1 = new String("""
%s, %s!
""").formatted("Hello", "World");
String s = (/* 1 */ new /* 2 */ String(/* 3 */"""
Hello, World!%n
"""/* 4 */)/* 5 */)./* 6 */formatted();
}
}