Test01#checkTrueFail marked as pure

This commit is contained in:
Tagir Valeev
2017-05-25 12:42:43 +07:00
parent 68dd38bbca
commit ea4c21384d
@@ -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();