by funcDropShadow · 4y ago · 0 comments
The difference to asserts is that they express a property over to points in the execution of a program, whereas an assert only states a property of one point in the execution in the program. Practically, that means that you can refer to the state before some code in addition to the state after in the post-condition of that code.
Then there's just a plain old notNull() static method, which will trigger.