changeset 45 | 251d0ed461fb |
parent 29 | f6073056b9fe |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/task3/solution06/src/org/apidesign/apifest08/currency/Assert.java Tue Oct 07 11:05:34 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 +