mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Test01#checkTrueFail marked as pure
This commit is contained in:
+1
-1
@@ -201,7 +201,7 @@ public class Test01 {
|
||||
return !x;
|
||||
}
|
||||
|
||||
@ExpectContract(value = "_,true->true;null,_->true")
|
||||
@ExpectContract(value = "_,true->true;null,_->true", pure=true)
|
||||
boolean checkTrueFail(Object a, boolean b) {
|
||||
if (a == null) return true;
|
||||
if (b) throw new RuntimeException();
|
||||
|
||||
Reference in New Issue
Block a user