mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-81079: surround with notnull checks on selection
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
|
||||
class Test {
|
||||
String foo() {
|
||||
return null;
|
||||
}
|
||||
|
||||
void bar() {
|
||||
<selection>foo()</selection>.toLowerCase()
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
|
||||
class Test {
|
||||
String foo() {
|
||||
return null;
|
||||
}
|
||||
|
||||
void bar() {
|
||||
if (foo() != null) {
|
||||
foo().toLowerCase()<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user