mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-194439 Regression: Enum.toString() should not be externally annotated as @NotNull
This commit is contained in:
+5
-1
@@ -23,4 +23,8 @@ interface NonNullEnum {
|
||||
String name();
|
||||
}
|
||||
|
||||
enum NonNullEnumImpl implements NonNullEnum {}
|
||||
enum NonNullEnumImpl implements NonNullEnum { a;
|
||||
public String toString() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -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)'>
|
||||
|
||||
Reference in New Issue
Block a user