Here you can find the source of assertNotNull(final String name, final T object)
public static final <T> T assertNotNull(final String name, final T object)
//package com.java2s; //License from project: LGPL public class Main { public static final <T> T assertNotNull(final String name, final T object) { if (object == null) throw new IllegalArgumentException(String.format("%s == null", name)); return object; }//from ww w .j a v a 2s .c o m }