import org.gcontracts.annotations.*
class A {
private final String a
private final String b
@Requires({ a && b })
A(String a, String b) {
this.a = a
this.b = b
}
}
the precondition should be called on the method parameters a and b, but in fact it is called on the instance variables.
In the following code sample
the precondition should be called on the method parameters a and b, but in fact it is called on the instance variables.