support org.springframework.util.Assert.notNull (IDEA-159977)

This commit is contained in:
peter
2016-09-16 15:54:58 +02:00
parent 5cec9ade29
commit 9e1704670c
3 changed files with 18 additions and 0 deletions
@@ -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());
}
}