java postfix templates: '.format' template should be expression-based IDEA-139659

This commit is contained in:
Andrey Starovoyt
2015-04-27 17:06:08 +03:00
parent e79e75784e
commit 373deb8475
7 changed files with 53 additions and 4 deletions
@@ -0,0 +1,9 @@
package templates;
import java.lang.Exception;
public class Foo {
void m(boolean b, int value) {
throw new Exception("".format<caret>);
}
}
@@ -0,0 +1,9 @@
package templates;
import java.lang.Exception;
public class Foo {
void m(boolean b, int value) {
throw new Exception("".format<caret>
}
}
@@ -0,0 +1,9 @@
package templates;
import java.lang.Exception;
public class Foo {
void m(boolean b, int value) {
throw new Exception(String.format("", <caret>)
}
}
@@ -0,0 +1,9 @@
package templates;
import java.lang.Exception;
public class Foo {
void m(boolean b, int value) {
throw new Exception(String.format("", <caret>));
}
}
@@ -2,6 +2,6 @@ package templates;
public class Foo {
void m(boolean b, int value) {
String.format("m()", <caret>);
String.format("m()", <caret>)
}
}