Here you can find the source of assertNotNull(String message, Object val)
public static void assertNotNull(String message, Object val)
//package com.java2s; //License from project: LGPL public class Main { public static void assertNotNull(String message, Object val) { if (message != null) assert val != null : message; else// ww w.j av a 2 s . c o m assert val != null; } public static void assertNotNull(Object val) { assertNotNull(null, val); } }