don't offer to replace with MessageFormat.format() when concatenation is constant (IDEA-18184 & IDEA-165981)

This commit is contained in:
Bas Leijdekkers
2017-01-10 13:20:24 +01:00
parent 03ba17b426
commit 4a89674b9f
5 changed files with 72 additions and 4 deletions
@@ -0,0 +1,6 @@
class Constant {
void f() {
String s = "a" + <caret>"b";
}
}
@@ -0,0 +1,6 @@
class Simple {
void f(int i) {
String s = java.text.MessageFormat.format("a{0}b", i);
}
}
@@ -0,0 +1,6 @@
class Simple {
void f(int i) {
String s = "a" + i + <caret>"b";
}
}