1.1 --- a/samples/composition/src-api2.0-property/api/Arithmetica.java Sat Jun 14 09:57:56 2008 +0200
1.2 +++ b/samples/composition/src-api2.0-property/api/Arithmetica.java Sat Jun 14 09:57:58 2008 +0200
1.3 @@ -22,11 +22,13 @@
1.4 }
1.5
1.6 public int sumRange(int from, int to) {
1.7 + // BEGIN: design.composition.arith2.0.property.if
1.8 if (Boolean.getBoolean("arithmetica.v2")) {
1.9 return sumRange2(from, to);
1.10 } else {
1.11 return sumRange1(from, to);
1.12 }
1.13 + // END: design.composition.arith2.0.property.if
1.14 }
1.15
1.16 private int sumRange1(int from, int to) {