Enum.values() is not-null (IDEA-161644)

This commit is contained in:
peter
2016-09-23 12:59:47 +02:00
parent 5213b1c59f
commit 57267fe776
2 changed files with 16 additions and 6 deletions
@@ -23,4 +23,14 @@ class Test {
@NotNull
native Object knownObject();
}
enum DemoEnum {
TEST, DEMO, DEMO_1;
public static DemoEnum testMethod(String value){
for (DemoEnum demoEnum : DemoEnum.values()) {
}
return null;
}
}