@Requires("x > 0") @Ensures("result > 0") public int square(int x) { return x * x; } cj-checker YourClass.java # Enable runtime checking cj.runtime-check = true # Specify the contract checking level cj.level = runtime


上一篇:
下一篇:
切换中文