mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
add @NotNull to some Enum methods (IDEA-192829)
This commit is contained in:
+7
@@ -17,3 +17,10 @@ abstract class ParamFail extends ParamBase implements <warning descr="Non-annota
|
||||
|
||||
abstract class ParamFail2 extends ParamBase implements <warning descr="Non-null parameter 's' in method 'setString2' from 'ParamBase' should not override non-annotated parameter from 'NonAnnotatedInt'">NonAnnotatedInt</warning> { }
|
||||
|
||||
|
||||
interface NonNullEnum {
|
||||
@NotNull
|
||||
String name();
|
||||
}
|
||||
|
||||
enum NonNullEnumImpl implements NonNullEnum {}
|
||||
@@ -82,6 +82,15 @@
|
||||
<val name="to" val="java.lang.Integer.MAX_VALUE"/>
|
||||
</annotation>
|
||||
</item>
|
||||
<item name='java.lang.Enum java.lang.Class<E> getDeclaringClass()'>
|
||||
<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)'>
|
||||
<annotation name='org.jetbrains.annotations.Range'>
|
||||
<val name="from" val="0"/>
|
||||
|
||||
Reference in New Issue
Block a user