IDEA-42270 Good code is yellow: null passed to a @NotNull annotated varargs parameter

This commit is contained in:
peter
2012-10-29 12:57:22 +01:00
parent b2ca4d8a33
commit 03ab1d39cb
4 changed files with 44 additions and 2 deletions
@@ -0,0 +1,10 @@
import org.jetbrains.annotations.NotNull;
class Test {
public static void test(@NotNull Object... objects) { }
public static void main(String[] args) {
Object o = null;
test(o);
}
}