Commit 404c2bc8 authored by peter's avatar peter
Browse files

IDEA-194439 Regression: Enum.toString() should not be externally annotated as @NotNull

parent f1f0a5d2
Showing with 5 additions and 4 deletions
+5 -4
......@@ -23,4 +23,8 @@ interface NonNullEnum {
String name();
}
enum NonNullEnumImpl implements NonNullEnum {}
\ No newline at end of file
enum NonNullEnumImpl implements NonNullEnum { a;
public String toString() {
return null;
}
}
\ No newline at end of file
......@@ -86,9 +86,6 @@
<annotation name='org.jetbrains.annotations.NotNull'/>
</item>
<item name='java.lang.Enum java.lang.String name()'>
<annotation name='org.jetbrains.annotations.NotNull'/>
</item>
<item name='java.lang.Enum java.lang.String toString()'>
<annotation name='org.jetbrains.annotations.NotNull'/>
</item>
<item name='java.lang.Integer int bitCount(int)'>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment