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