home *** CD-ROM | disk | FTP | other *** search
- package allaire.util;
-
- public class Assert {
- public static void fail(String var0) throws IllegalArgumentException {
- notFalse(false, var0);
- }
-
- public static void notNull(Object var0) throws IllegalArgumentException {
- if (var0 == null) {
- throw new IllegalArgumentException("null argument");
- }
- }
-
- public static void notNull(Object var0, String var1) throws IllegalArgumentException {
- if (var0 == null) {
- throw new IllegalArgumentException(var1);
- }
- }
-
- public static void notFalse(boolean var0) throws IllegalArgumentException {
- if (!var0) {
- throw new IllegalArgumentException("boolean expression false");
- }
- }
-
- public static void notFalse(boolean var0, String var1) throws IllegalArgumentException {
- if (!var0) {
- throw new IllegalArgumentException(var1);
- }
- }
- }
-