mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
surround with if: fix for expression lambda (IDEA-160218)
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
// "Surround with 'if (i != null)'" "true"
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
class A {
|
||||
void foo(@Nullable String i) {
|
||||
Runnable r = () -> {
|
||||
if (i != null) {
|
||||
i.length();
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Surround with 'if (i != null)'" "true"
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
class A {
|
||||
void foo(@Nullable String i) {
|
||||
Runnable r = () -> i.<caret>length();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user