java postfix templates: new castvar template IDEA-191025

This commit is contained in:
anstarovoyt
2018-04-26 16:44:41 +03:00
parent 8b182dbf9d
commit 856344c4eb
10 changed files with 169 additions and 0 deletions
@@ -0,0 +1,7 @@
public class Foo {
void m(Object o) {
if (o instanceof Boolean) {
o.castvar<caret>
}
}
}
@@ -0,0 +1,7 @@
public class Foo {
void m(Object o) {
if (o instanceof Boolean) {
final Boolean aBoolean = (Boolean) o;
}
}
}
@@ -0,0 +1,7 @@
public class Foo {
void m(Object o) {
if (o instanceof Boolean) {
o.castvar<caret>
}
}
}
@@ -0,0 +1,7 @@
public class Foo {
void m(Object o) {
if (o instanceof Boolean) {
Boolean aBoolean = (Boolean) o;
}
}
}