Here you can find the source of assertNotNull(Object object, String message)
public static void assertNotNull(Object object, String message)
//package com.java2s; //License from project: Apache License public class Main { public static void assertNotNull(Object object) { assertNotNull(object, "Object may not be null."); }//ww w. ja v a2 s .c o m public static void assertNotNull(Object object, String message) { if (object == null) { throw new NullPointerException(message); } } }