mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
support org.springframework.util.Assert.notNull (IDEA-159977)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import org.springframework.util.Assert;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
class Contracts {
|
||||
|
||||
@@ -12,4 +13,14 @@ class Contracts {
|
||||
String s = (String) o;
|
||||
}
|
||||
|
||||
void foo2(@Nullable Object o) {
|
||||
Assert.notNull(o);
|
||||
System.out.println(o.hashCode());
|
||||
}
|
||||
|
||||
void foo3(@Nullable Object o) {
|
||||
Assert.notNull(o, "not null");
|
||||
System.out.println(o.hashCode());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user