samples/composition/src-api2.0-runtime/org/apidesign/math/Arithmetica.java
changeset 409 40cabcdcd2be
parent 321 06bf3a32eaa0
     1.1 --- a/samples/composition/src-api2.0-runtime/org/apidesign/math/Arithmetica.java	Sat Feb 14 17:30:06 2009 +0100
     1.2 +++ b/samples/composition/src-api2.0-runtime/org/apidesign/math/Arithmetica.java	Thu Oct 30 21:30:10 2014 +0100
     1.3 @@ -1,6 +1,5 @@
     1.4  package org.apidesign.math;
     1.5  
     1.6 -import org.apidesign.math.Arithmetica;
     1.7  import org.apidesign.runtime.check.RuntimeCheck;
     1.8  
     1.9  /** Class to simplify arithmetical operations, improved version to compute
    1.10 @@ -10,6 +9,7 @@
    1.11   * @author Jaroslav Tulach <jtulach@netbeans.org>
    1.12   * @version 2.0
    1.13   */
    1.14 +// BEGIN: design.composition.arith.runtime
    1.15  public class Arithmetica {
    1.16      public int sumTwo(int one, int second) {
    1.17          return one + second;
    1.18 @@ -60,7 +60,9 @@
    1.19              if (myLoader == caller) {
    1.20                  continue;
    1.21              }
    1.22 -            if (RuntimeCheck.requiresAtLeast("2.6", "api.Arithmetica", caller)) {
    1.23 +            if (RuntimeCheck.requiresAtLeast(
    1.24 +                "2.0", "org.apidesign.math", caller
    1.25 +            )) {
    1.26                  return true;
    1.27              }
    1.28              return false;
    1.29 @@ -70,3 +72,4 @@
    1.30      }
    1.31      
    1.32  }
    1.33 +// END: design.composition.arith.runtime