changeset 6 | 97662396c0fd |
child 21 | 61e4c4c120fd |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/task1/solution06/src/org/apidesign/apifest08/currency/Assert.java Sun Sep 28 14:12:38 2008 +0200 1.3 @@ -0,0 +1,9 @@ 1.4 +package org.apidesign.apifest08.currency; 1.5 + 1.6 +public class Assert { 1.7 + static void notNull(Object value, String argumentName) { 1.8 + if(value == null) { 1.9 + throw new IllegalArgumentException("The argument '" + argumentName + "' connot not be null"); 1.10 + } 1.11 + } 1.12 +}