mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
IDEA-124359 Add Inspection for detecting nullable values passed into Optional.of()
test that it correctly works with Guava
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
// "Replace with '.fromNullable()'" "true"
|
||||
class A{
|
||||
void test(){
|
||||
com.google.common.base.Optional.fromNullable(n<caret>ull);
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Replace with '.fromNullable()'" "true"
|
||||
class A{
|
||||
void test(){
|
||||
com.google.common.base.Optional.of(n<caret>ull);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user