IDEA-81079: surround with notnull checks on selection

This commit is contained in:
anna
2012-07-12 19:30:46 +02:00
parent 3818145a76
commit 5e0efa30e5
5 changed files with 101 additions and 1 deletions
@@ -0,0 +1,10 @@
class Test {
String foo() {
return null;
}
void bar() {
<selection>foo()</selection>.toLowerCase()
}
}
@@ -0,0 +1,12 @@
class Test {
String foo() {
return null;
}
void bar() {
if (foo() != null) {
foo().toLowerCase()<caret>
}
}
}