diff -r 06bf3a32eaa0 -r 40cabcdcd2be samples/composition/src-api2.0-runtime/org/apidesign/math/Arithmetica.java --- a/samples/composition/src-api2.0-runtime/org/apidesign/math/Arithmetica.java Sat Feb 14 17:30:06 2009 +0100 +++ b/samples/composition/src-api2.0-runtime/org/apidesign/math/Arithmetica.java Thu Oct 30 21:30:10 2014 +0100 @@ -1,6 +1,5 @@ package org.apidesign.math; -import org.apidesign.math.Arithmetica; import org.apidesign.runtime.check.RuntimeCheck; /** Class to simplify arithmetical operations, improved version to compute @@ -10,6 +9,7 @@ * @author Jaroslav Tulach * @version 2.0 */ +// BEGIN: design.composition.arith.runtime public class Arithmetica { public int sumTwo(int one, int second) { return one + second; @@ -60,7 +60,9 @@ if (myLoader == caller) { continue; } - if (RuntimeCheck.requiresAtLeast("2.6", "api.Arithmetica", caller)) { + if (RuntimeCheck.requiresAtLeast( + "2.0", "org.apidesign.math", caller + )) { return true; } return false; @@ -70,3 +72,4 @@ } } +// END: design.composition.arith.runtime