1/* GENERATED SOURCE. DO NOT MODIFY. */ 2/* 3******************************************************************************* 4* Copyright (C) 2005-2006, International Business Machines 5* Corporation and others. All Rights Reserved. 6******************************************************************************* 7*/ 8package android.icu.impl; 9 10// 1.3 compatibility layer 11/** 12 * @hide Only a subset of ICU is exposed in Android 13 */ 14public class Assert { 15 public static void fail(Exception e) { 16 fail(e.toString()); // can't wrap exceptions in jdk 1.3 17 } 18 public static void fail(String msg) { 19 throw new IllegalStateException("failure '" + msg + "'"); 20 } 21 public static void assrt(boolean val) { 22 if (!val) throw new IllegalStateException("assert failed"); 23 } 24 public static void assrt(String msg, boolean val) { 25 if (!val) throw new IllegalStateException("assert '" + msg + "' failed"); 26 } 27} 28