Here you can find the source of assertNotNull(String variableName, Object value)
public static Object assertNotNull(String variableName, Object value)
//package com.java2s; //License from project: LGPL public class Main { /**// www.j a v a 2 s.co m * Method throws NullPointerException when the variable named variableName has a null value. * * @return The value. */ public static Object assertNotNull(String variableName, Object value) { if (value == null) throw new NullPointerException("The variable named " + variableName + " is null."); return value; } }