Java tutorial
//package com.java2s; //License from project: LGPL public class Main { public static void checkNotNull(Object target, String msg) { if (target == null) throw new NullPointerException(msg); } }