mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
java postfix templates: '.format' template should be expression-based IDEA-139659
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package templates;
|
||||
|
||||
import java.lang.Exception;
|
||||
|
||||
public class Foo {
|
||||
void m(boolean b, int value) {
|
||||
throw new Exception("".format<caret>);
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package templates;
|
||||
|
||||
import java.lang.Exception;
|
||||
|
||||
public class Foo {
|
||||
void m(boolean b, int value) {
|
||||
throw new Exception("".format<caret>
|
||||
}
|
||||
}
|
||||
+9
@@ -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>)
|
||||
}
|
||||
}
|
||||
+9
@@ -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>));
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -2,6 +2,6 @@ package templates;
|
||||
|
||||
public class Foo {
|
||||
void m(boolean b, int value) {
|
||||
String.format("m()", <caret>);
|
||||
String.format("m()", <caret>)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user