Java tutorial
//package com.java2s; public class Main { public static void assertNotNull(Object object, String exceptionTip) { if (null == object) { throw new RuntimeException(exceptionTip); } } }