mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
don't offer to replace with MessageFormat.format() when concatenation is constant (IDEA-18184 & IDEA-165981)
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user