mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
add "pure" attribute to @Contract (IDEA-107864)
This commit is contained in:
@@ -46,4 +46,7 @@ public class AssertIsNotNull {
|
||||
|
||||
@Contract(<warning descr="Method takes 2 parameters, while contract clause number 1 expects 1">"null -> _"</warning>)
|
||||
void wrongParameterCount(Object a, boolean b) {}
|
||||
|
||||
@Contract(pure=<warning descr="Pure methods must return something, void is not allowed as a return type">true</warning>)
|
||||
void voidPureMethod() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user