Another use for Arithmetica
authorJaroslav Tulach <jtulach@netbeans.org>
Sat, 14 Jun 2008 09:57:58 +0200
changeset 149eb52f31b18f4
parent 148 e762b177d4b0
child 150 7bb92c7ec747
Another use for Arithmetica
samples/composition/src-api2.0-property/api/Arithmetica.java
     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) {