changeset 29 | f6073056b9fe |
parent 21 | 61e4c4c120fd |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/task2/solution06/src/org/apidesign/apifest08/currency/Assert.java Wed Oct 01 10:43:05 2008 +0200 1.3 @@ -0,0 +1,11 @@ 1.4 +package org.apidesign.apifest08.currency; 1.5 + 1.6 +public final 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 +} 1.13 + 1.14 +